Fix Visualizzazione
This commit is contained in:
@@ -513,12 +513,14 @@ def getCurrentView(item=None, parent_item=None):
|
||||
return None, None
|
||||
item = Item().fromurl(info) if info else Item()
|
||||
parent_actions = ['movies', 'news', 'search', 'get_from_temp', 'newest', 'discover_list', 'new_search', 'channel_search']
|
||||
logger.debug('PARENT:',parent_item.action)
|
||||
|
||||
addons = 'addons' if config.get_setting('touch_view') else ''
|
||||
|
||||
if parent_item.action == 'findvideos' or (parent_item.action in ['channel_search', 'new_search'] and parent_item.infoLabels['tmdb_id']):
|
||||
return 'server', 'addons' if config.get_setting('touch_view') else ''
|
||||
return 'server', addons
|
||||
|
||||
elif parent_item.action == 'mainlist':
|
||||
return 'channel', 'addons' if config.get_setting('touch_view') else ''
|
||||
return 'channel', addons
|
||||
|
||||
elif (item.contentType in ['movie'] and parent_item.action in parent_actions) \
|
||||
or (item.channel in ['videolibrary'] and parent_item.action in ['list_movies']) \
|
||||
@@ -537,13 +539,13 @@ def getCurrentView(item=None, parent_item=None):
|
||||
return 'episode', 'episodes'
|
||||
|
||||
elif not parent_item.action or parent_item.action in ['getmainlist']:
|
||||
return 'home', 'addons' if config.get_setting('touch_view') else ''
|
||||
return 'home', addons
|
||||
|
||||
elif parent_item.action in ['filterchannels']:
|
||||
return 'channels', 'addons' if config.get_setting('touch_view') else ''
|
||||
return 'channels', addons
|
||||
|
||||
else:
|
||||
return 'menu', 'addons' if config.get_setting('touch_view') else ''
|
||||
return 'menu', addons
|
||||
|
||||
|
||||
def set_view_mode(item, parent_item):
|
||||
|
||||
Reference in New Issue
Block a user