Merge pull request #630 from mcarlton00/open-from-settings

Fix opening the addon menu from the settings page
This commit is contained in:
Odd Stråbø 2022-04-23 22:20:26 +02:00 committed by GitHub
commit 753aa2ce47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ class Events(object):
backup() backup()
elif mode == 'restartservice': elif mode == 'restartservice':
window('jellyfin.restart.bool', True) window('jellyfin.restart.bool', True)
elif mode is None and not params: elif mode is None and not params and base_url != 'plugin://plugin.video.jellyfin/':
# Used when selecting "Browse" from a context menu, see #548 # Used when selecting "Browse" from a context menu, see #548
item_id = base_url.strip('/').split('/')[-1] item_id = base_url.strip('/').split('/')[-1]
browse('', item_id, None, server, api_client) browse('', item_id, None, server, api_client)