From 14c07ce42f42e3dfdf513b52f4bc02d3197f2ac1 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 5 Oct 2018 17:29:21 -0500 Subject: [PATCH] Fix artwork for shortcuts on profile switch --- resources/lib/views.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/resources/lib/views.py b/resources/lib/views.py index 055d3ad2..213b245d 100644 --- a/resources/lib/views.py +++ b/resources/lib/views.py @@ -830,9 +830,14 @@ class Views(object): window('%s.type' % window_prop, view['Media']) 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): - 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: self.media_folders = self.get_libraries() @@ -845,6 +850,8 @@ class Views(object): window('%s.artwork' % prop, artwork) break + else: + window('%s.artwork' % prop, clear=True) def window_path(self, view, 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) props = [ - "index","id","path","title","content","type" + "index","id","path","artwork","title","content","type" "inprogress.content","inprogress.title", "inprogress.content","inprogress.path", "nextepisodes.title","nextepisodes.content", @@ -898,6 +905,9 @@ class Views(object): for prop in props: 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): xbmcvfs.delete(path)