mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Fix for user selection when all users are hidden
This commit is contained in:
parent
964e9eccef
commit
bd89228097
1 changed files with 6 additions and 0 deletions
|
@ -134,6 +134,12 @@ class ConnectManager(object):
|
||||||
server_address = connectionmanager.getServerAddress(server, server['LastConnectionMode'])
|
server_address = connectionmanager.getServerAddress(server, server['LastConnectionMode'])
|
||||||
users = self.emby.getUsers(server_address)
|
users = self.emby.getUsers(server_address)
|
||||||
|
|
||||||
|
if not users:
|
||||||
|
try:
|
||||||
|
return self.login_manual(server_address)
|
||||||
|
except RuntimeError:
|
||||||
|
raise RuntimeError("No user selected")
|
||||||
|
|
||||||
dialog = UsersConnect("script-emby-connect-users.xml", *XML_PATH)
|
dialog = UsersConnect("script-emby-connect-users.xml", *XML_PATH)
|
||||||
dialog.set_server(server_address)
|
dialog.set_server(server_address)
|
||||||
dialog.set_users(users)
|
dialog.set_users(users)
|
||||||
|
|
Loading…
Reference in a new issue