mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-22 01:23:43 +00:00
Change prevent showing 'Mark download as bad and retry?' dialog when status doesn't require it
This commit is contained in:
parent
28211b6013
commit
749f7bcd91
3 changed files with 7 additions and 1 deletions
|
@ -106,6 +106,7 @@
|
||||||
* Add "Shows from defunct TV info sources" to Manage/Show Processes page to link shows that can be switched to a
|
* Add "Shows from defunct TV info sources" to Manage/Show Processes page to link shows that can be switched to a
|
||||||
different default TV info source
|
different default TV info source
|
||||||
* Add shows not found at a TV info source for over 7 days will only be retried once a week
|
* Add shows not found at a TV info source for over 7 days will only be retried once a week
|
||||||
|
* Change prevent showing 'Mark download as bad and retry?' dialog when status doesn't require it
|
||||||
|
|
||||||
|
|
||||||
[develop changelog]
|
[develop changelog]
|
||||||
|
|
|
@ -67,7 +67,7 @@ function updateImages(data) {
|
||||||
//el=$('td#' + ep.season + 'x' + ep.episode + '.search img');
|
//el=$('td#' + ep.season + 'x' + ep.episode + '.search img');
|
||||||
img.attr('title','Searching');
|
img.attr('title','Searching');
|
||||||
img.attr('alt','searching');
|
img.attr('alt','searching');
|
||||||
img.parent().attr('class','epRetry');
|
if (ep.retrystatus) {img.parent().attr('class','epRetry');} else {img.parent().attr('class','epSearch');}
|
||||||
img.attr('src',sbRoot+'/images/' + searchImage);
|
img.attr('src',sbRoot+'/images/' + searchImage);
|
||||||
enableLink(el);
|
enableLink(el);
|
||||||
|
|
||||||
|
|
|
@ -2362,6 +2362,7 @@ class Home(MainHandler):
|
||||||
'status' : statusStrings[epObj.status],
|
'status' : statusStrings[epObj.status],
|
||||||
'quality': self.getQualityClass(epObj)})
|
'quality': self.getQualityClass(epObj)})
|
||||||
|
|
||||||
|
retry_statues = [SNATCHED, SNATCHED_BEST, SNATCHED_PROPER, DOWNLOADED, ARCHIVED]
|
||||||
if currentManualSearchThreadActive:
|
if currentManualSearchThreadActive:
|
||||||
searchThread = currentManualSearchThreadActive
|
searchThread = currentManualSearchThreadActive
|
||||||
searchstatus = 'searching'
|
searchstatus = 'searching'
|
||||||
|
@ -2374,6 +2375,7 @@ class Home(MainHandler):
|
||||||
'episodeindexid': searchThread.segment.indexerid,
|
'episodeindexid': searchThread.segment.indexerid,
|
||||||
'season' : searchThread.segment.season,
|
'season' : searchThread.segment.season,
|
||||||
'searchstatus' : searchstatus,
|
'searchstatus' : searchstatus,
|
||||||
|
'retrystatus': Quality.splitCompositeStatus(searchThread.segment.status)[0] in retry_statues,
|
||||||
'status' : statusStrings[searchThread.segment.status],
|
'status' : statusStrings[searchThread.segment.status],
|
||||||
'quality': self.getQualityClass(searchThread.segment)})
|
'quality': self.getQualityClass(searchThread.segment)})
|
||||||
elif hasattr(searchThread, 'segment'):
|
elif hasattr(searchThread, 'segment'):
|
||||||
|
@ -2382,6 +2384,7 @@ class Home(MainHandler):
|
||||||
'episodeindexid': epObj.indexerid,
|
'episodeindexid': epObj.indexerid,
|
||||||
'season' : epObj.season,
|
'season' : epObj.season,
|
||||||
'searchstatus' : searchstatus,
|
'searchstatus' : searchstatus,
|
||||||
|
'retrystatus': Quality.splitCompositeStatus(epObj.status)[0] in retry_statues,
|
||||||
'status' : statusStrings[epObj.status],
|
'status' : statusStrings[epObj.status],
|
||||||
'quality': self.getQualityClass(epObj)})
|
'quality': self.getQualityClass(epObj)})
|
||||||
|
|
||||||
|
@ -2394,6 +2397,7 @@ class Home(MainHandler):
|
||||||
'episodeindexid': searchThread.segment.indexerid,
|
'episodeindexid': searchThread.segment.indexerid,
|
||||||
'season' : searchThread.segment.season,
|
'season' : searchThread.segment.season,
|
||||||
'searchstatus' : searchstatus,
|
'searchstatus' : searchstatus,
|
||||||
|
'retrystatus': Quality.splitCompositeStatus(searchThread.segment.status)[0] in retry_statues,
|
||||||
'status' : statusStrings[searchThread.segment.status],
|
'status' : statusStrings[searchThread.segment.status],
|
||||||
'quality': self.getQualityClass(searchThread.segment)})
|
'quality': self.getQualityClass(searchThread.segment)})
|
||||||
### These are only Failed Downloads/Retry SearchThreadItems.. lets loop through the segement/episodes
|
### These are only Failed Downloads/Retry SearchThreadItems.. lets loop through the segement/episodes
|
||||||
|
@ -2405,6 +2409,7 @@ class Home(MainHandler):
|
||||||
'episodeindexid': epObj.indexerid,
|
'episodeindexid': epObj.indexerid,
|
||||||
'season' : epObj.season,
|
'season' : epObj.season,
|
||||||
'searchstatus' : searchstatus,
|
'searchstatus' : searchstatus,
|
||||||
|
'retrystatus': Quality.splitCompositeStatus(epObj.status)[0] in retry_statues,
|
||||||
'status' : statusStrings[epObj.status],
|
'status' : statusStrings[epObj.status],
|
||||||
'quality': self.getQualityClass(epObj)})
|
'quality': self.getQualityClass(epObj)})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue