Fix some tuples

This commit is contained in:
Claus Vium 2019-02-02 18:28:50 +01:00
parent 233192863a
commit fd9cde6008
3 changed files with 3 additions and 3 deletions

View file

@ -69,7 +69,7 @@ class Monitor(xbmc.Monitor):
elif sender.startswith('upnextprovider'): elif sender.startswith('upnextprovider'):
method = method.split('.')[1] method = method.split('.')[1]
if method not in ('plugin.video.jellyfin_play_action'): if method not in ('plugin.video.jellyfin_play_action',):
return return
data = json.loads(data) data = json.loads(data)

View file

@ -238,7 +238,7 @@ class Actions(object):
obj['Artwork'] = API.get_all_artwork(objects.map(item, 'Artwork')) obj['Artwork'] = API.get_all_artwork(objects.map(item, 'Artwork'))
self.listitem_photo(obj, listitem, item) self.listitem_photo(obj, listitem, item)
elif item['Type'] in ('TvChannel'): elif item['Type'] in ('TvChannel',):
obj = objects.map(item, 'BrowseChannel') obj = objects.map(item, 'BrowseChannel')
obj['Artwork'] = API.get_all_artwork(objects.map(item, 'Artwork')) obj['Artwork'] = API.get_all_artwork(objects.map(item, 'Artwork'))

View file

@ -250,7 +250,7 @@ class Views(object):
if view['Media'] in ('movies', 'tvshows', 'musicvideos'): if view['Media'] in ('movies', 'tvshows', 'musicvideos'):
self.add_playlist(playlist_path, view) self.add_playlist(playlist_path, view)
if view['Media'] not in ('music'): if view['Media'] not in ('music',):
self.add_nodes(node_path, view) self.add_nodes(node_path, view)
index += 1 index += 1