Change prevent showing 'Mark download as bad and retry?' dialog when status doesn't require it

This commit is contained in:
Prinz23 2017-08-31 01:04:32 +02:00 committed by JackDandy
parent 28211b6013
commit 749f7bcd91
3 changed files with 7 additions and 1 deletions

View file

@ -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
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
* Change prevent showing 'Mark download as bad and retry?' dialog when status doesn't require it
[develop changelog]

View file

@ -67,7 +67,7 @@ function updateImages(data) {
//el=$('td#' + ep.season + 'x' + ep.episode + '.search img');
img.attr('title','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);
enableLink(el);

View file

@ -2362,6 +2362,7 @@ class Home(MainHandler):
'status' : statusStrings[epObj.status],
'quality': self.getQualityClass(epObj)})
retry_statues = [SNATCHED, SNATCHED_BEST, SNATCHED_PROPER, DOWNLOADED, ARCHIVED]
if currentManualSearchThreadActive:
searchThread = currentManualSearchThreadActive
searchstatus = 'searching'
@ -2374,6 +2375,7 @@ class Home(MainHandler):
'episodeindexid': searchThread.segment.indexerid,
'season' : searchThread.segment.season,
'searchstatus' : searchstatus,
'retrystatus': Quality.splitCompositeStatus(searchThread.segment.status)[0] in retry_statues,
'status' : statusStrings[searchThread.segment.status],
'quality': self.getQualityClass(searchThread.segment)})
elif hasattr(searchThread, 'segment'):
@ -2382,6 +2384,7 @@ class Home(MainHandler):
'episodeindexid': epObj.indexerid,
'season' : epObj.season,
'searchstatus' : searchstatus,
'retrystatus': Quality.splitCompositeStatus(epObj.status)[0] in retry_statues,
'status' : statusStrings[epObj.status],
'quality': self.getQualityClass(epObj)})
@ -2394,6 +2397,7 @@ class Home(MainHandler):
'episodeindexid': searchThread.segment.indexerid,
'season' : searchThread.segment.season,
'searchstatus' : searchstatus,
'retrystatus': Quality.splitCompositeStatus(searchThread.segment.status)[0] in retry_statues,
'status' : statusStrings[searchThread.segment.status],
'quality': self.getQualityClass(searchThread.segment)})
### These are only Failed Downloads/Retry SearchThreadItems.. lets loop through the segement/episodes
@ -2405,6 +2409,7 @@ class Home(MainHandler):
'episodeindexid': epObj.indexerid,
'season' : epObj.season,
'searchstatus' : searchstatus,
'retrystatus': Quality.splitCompositeStatus(epObj.status)[0] in retry_statues,
'status' : statusStrings[epObj.status],
'quality': self.getQualityClass(epObj)})