From c54e70e99b741d62cc36df1a9ec0e249a2fe983d Mon Sep 17 00:00:00 2001 From: KontiSR Date: Fri, 19 Sep 2014 13:56:49 +0200 Subject: [PATCH] Fixed displaying of currently running searches --- sickbeard/webserve.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index f5189539..3ae7792f 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -4379,13 +4379,15 @@ class Home(MainHandler): searchstatus = 'searching' if searchThread.success: searchstatus = 'finished' - episodes.append({'episode': searchThread.segment.episode, + else: + searchstatus = 'searching' + episodes.append({'episode': searchThread.segment.episode, 'episodeindexid': searchThread.segment.indexerid, - 'season' : searchThread.segment.season, - 'searchstatus' : searchstatus, - 'status' : statusStrings[searchThread.segment.status], - 'quality': self.getQualityClass(searchThread.segment)}) - + 'season' : searchThread.segment.season, + 'searchstatus' : searchstatus, + 'status' : statusStrings[searchThread.segment.status], + 'quality': self.getQualityClass(searchThread.segment)}) + if finishedManualSearchThreadItems: for searchThread in finishedManualSearchThreadItems: if isinstance(searchThread, sickbeard.search_queue.ManualSearchQueueItem):