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
1 changed files with 4 additions and 0 deletions

View File

@ -144,6 +144,10 @@ class Events(object):
backup()
elif mode == 'restartservice':
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:
listing()