From 1f846b13029388dcc7aed9da4c188a23808f6aa2 Mon Sep 17 00:00:00 2001 From: im85288 Date: Mon, 4 May 2015 17:34:05 +0100 Subject: [PATCH] playback from home widgets does not need the setresolvedurl method called along with xbmc.play --- resources/lib/PlaybackUtils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/PlaybackUtils.py b/resources/lib/PlaybackUtils.py index b6851ddf..4dae984a 100644 --- a/resources/lib/PlaybackUtils.py +++ b/resources/lib/PlaybackUtils.py @@ -117,10 +117,11 @@ class PlaybackUtils(): if setup == "service": xbmc.Player().play(playurl,listItem) elif setup == "default": - xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listItem) - #artwork only works from widgets with both resolvedurl and player command + #artwork only works from widgets (home screen) with player command as there is no listitem selected if xbmc.getCondVisibility("Window.IsActive(home)"): xbmc.Player().play(playurl,listItem) + else: + xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listItem) def setArt(self, list,name,path): if name=='thumb' or name=='fanart_image' or name=='small_poster' or name=='tiny_poster' or name == "medium_landscape" or name=='medium_poster' or name=='small_fanartimage' or name=='medium_fanartimage' or name=='fanart_noindicators':