Private GIT

Skip to content
Snippets Groups Projects
Commit 97b14694 authored by Fernando's avatar Fernando
Browse files

Can't do a season pack search in manual search

@miigotu
so remove the condition.

TODO: need to start fallback search. It's not initiated.

@abeloin confirm we can't do a season pack search while manual search? I remember you did some changed in that.
We you first press MS, it starts a episode search not season search. Season search only works in backlog search and dailysearch

Fixes wrong search_mode when manual search and search_fallback is enabled
parent be8026b8
No related branches found
No related tags found
No related merge requests found
......@@ -453,8 +453,8 @@ def searchProviders(show, episodes, manualSearch=False, downCurQuality=False):
searchCount = 0
search_mode = curProvider.search_mode
# Always search for episode when manually searching when in sponly and fallback false
if search_mode == 'sponly' and manualSearch == True and curProvider.search_fallback == False:
# Always search for episode when manually searching when in sponly
if search_mode == 'sponly' and manualSearch == True:
search_mode = 'eponly'
while(True):
......@@ -491,11 +491,11 @@ def searchProviders(show, episodes, manualSearch=False, downCurQuality=False):
elif not curProvider.search_fallback or searchCount == 2:
break
if search_mode == 'sponly':
logger.log(u"FALLBACK EPISODE SEARCH INITIATED ...", logger.DEBUG)
if search_mode == 'eponly':
logger.log(u"Fallback episode search initiated", logger.DEBUG)
search_mode = 'eponly'
else:
logger.log(u"FALLBACK SEASON PACK SEARCH INITIATED ...", logger.DEBUG)
logger.log(u"Fallback season pack search initiate, logger.DEBUG)
search_mode = 'sponly'
# skip to next provider if we have no results to process
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment