mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix artwork for shortcuts on profile switch
This commit is contained in:
parent
3c9a97047e
commit
14c07ce42f
1 changed files with 12 additions and 2 deletions
|
@ -830,9 +830,14 @@ class Views(object):
|
||||||
window('%s.type' % window_prop, view['Media'])
|
window('%s.type' % window_prop, view['Media'])
|
||||||
self.window_artwork(window_prop, view['Id'])
|
self.window_artwork(window_prop, view['Id'])
|
||||||
|
|
||||||
|
LOG.debug("--[ wnode/%s/%s ] %s", index, window('%s.title' % window_prop), window('%s.artwork' % window_prop))
|
||||||
|
|
||||||
def window_artwork(self, prop, view_id):
|
def window_artwork(self, prop, view_id):
|
||||||
|
|
||||||
if self.server['connected']:
|
if not self.server['connected']:
|
||||||
|
window('%s.artwork' % prop, clear=True)
|
||||||
|
|
||||||
|
elif self.server['connected']:
|
||||||
|
|
||||||
if self.media_folders is None:
|
if self.media_folders is None:
|
||||||
self.media_folders = self.get_libraries()
|
self.media_folders = self.get_libraries()
|
||||||
|
@ -845,6 +850,8 @@ class Views(object):
|
||||||
window('%s.artwork' % prop, artwork)
|
window('%s.artwork' % prop, artwork)
|
||||||
|
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
window('%s.artwork' % prop, clear=True)
|
||||||
|
|
||||||
def window_path(self, view, node):
|
def window_path(self, view, node):
|
||||||
return "library://video/emby%s%s/%s.xml" % (view['Media'], view['Id'], node)
|
return "library://video/emby%s%s/%s.xml" % (view['Media'], view['Id'], node)
|
||||||
|
@ -883,7 +890,7 @@ class Views(object):
|
||||||
total = int(window((name or 'Emby.nodes') + '.total') or 0)
|
total = int(window((name or 'Emby.nodes') + '.total') or 0)
|
||||||
props = [
|
props = [
|
||||||
|
|
||||||
"index","id","path","title","content","type"
|
"index","id","path","artwork","title","content","type"
|
||||||
"inprogress.content","inprogress.title",
|
"inprogress.content","inprogress.title",
|
||||||
"inprogress.content","inprogress.path",
|
"inprogress.content","inprogress.path",
|
||||||
"nextepisodes.title","nextepisodes.content",
|
"nextepisodes.title","nextepisodes.content",
|
||||||
|
@ -898,6 +905,9 @@ class Views(object):
|
||||||
for prop in props:
|
for prop in props:
|
||||||
window('Emby.nodes.%s.%s' % (str(i), prop), clear=True)
|
window('Emby.nodes.%s.%s' % (str(i), prop), clear=True)
|
||||||
|
|
||||||
|
for prop in props:
|
||||||
|
window('Emby.nodes.%s' % prop, clear=True)
|
||||||
|
|
||||||
def delete_playlist(self, path):
|
def delete_playlist(self, path):
|
||||||
|
|
||||||
xbmcvfs.delete(path)
|
xbmcvfs.delete(path)
|
||||||
|
|
Loading…
Reference in a new issue