mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-11 02:46:34 +00:00
client.py - remove "connected"
This commit is contained in:
parent
31aa2073ad
commit
343803a2d8
2 changed files with 3 additions and 11 deletions
|
|
@ -98,12 +98,4 @@ class JellyfinClient(object):
|
|||
return self.callback_ws if 'ws' in key else self.callback
|
||||
|
||||
elif key.startswith('auth'):
|
||||
return self.auth.__shortcuts__(key.replace('auth/', "", 1))
|
||||
|
||||
elif key.startswith('api'):
|
||||
return self.jellyfin
|
||||
|
||||
elif key == 'connected':
|
||||
return self.logged_in
|
||||
|
||||
return
|
||||
return self.auth.__shortcuts__(key.replace('auth/', "", 1))
|
||||
|
|
@ -856,10 +856,10 @@ class Views(object):
|
|||
|
||||
def window_artwork(self, prop, view_id):
|
||||
|
||||
if not self.server['connected']:
|
||||
if not self.server.logged_in:
|
||||
window('%s.artwork' % prop, clear=True)
|
||||
|
||||
elif self.server['connected'] and self.media_folders is not None:
|
||||
elif self.server.logged_in and self.media_folders is not None:
|
||||
for library in self.media_folders:
|
||||
|
||||
if library['Id'] == view_id and 'Primary' in library.get('ImageTags', {}):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue