Merge pull request #576 from mcarlton00/context-browse

Allow browsing to a show from the info menu
This commit is contained in:
Odd Stråbø 2021-10-10 14:48:01 +02:00 committed by GitHub
commit ba164d1358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,6 +144,10 @@ 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:
# Used when selecting "Browse" from a context menu, see #548
item_id = base_url.strip('/').split('/')[-1]
browse('', item_id, None, server, api_client)
else: else:
listing() listing()