Possibile Fix Ricerca Globale

This commit is contained in:
Alhaziel01
2020-12-12 15:42:49 +01:00
parent bdd9ae1d94
commit 5f45c31e82
3 changed files with 33 additions and 13 deletions

View File

@@ -37,6 +37,7 @@ def start():
updater.showSavedChangelog()
def run(item=None):
# from core.support import dbg;dbg()
logger.debug()
if not item:
# Extract item from sys.argv
@@ -92,9 +93,12 @@ def run(item=None):
if not config.get_setting('tmdb_active'):
config.set_setting('tmdb_active', True)
if config.get_setting('new_search') and item.channel == "search" and item.action == 'new_search':
item.channel = 'globalsearch'
if item.channel =='globalsearch' or (config.get_setting('new_search') and item.channel == "search" and item.action == 'new_search'):
item.action = 'Search'
item.contextual = True
item.mode = 'all'
from specials.globalsearch import Search
return Search(item)
# If item has no action, stops here
if item.action == "":