From cef2b67eba1d88fce35b83b8e0e137fcd2c1f9d1 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sun, 3 May 2015 18:02:53 +0200 Subject: [PATCH] only use the additional play when launched from widget (home active) --- resources/lib/PlaybackUtils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/PlaybackUtils.py b/resources/lib/PlaybackUtils.py index 103c4f4f..8c179949 100644 --- a/resources/lib/PlaybackUtils.py +++ b/resources/lib/PlaybackUtils.py @@ -117,7 +117,8 @@ class PlaybackUtils(): elif setup == "default": xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listItem) #artwork only works from widgets with both resolvedurl and player command - xbmc.Player().play(playurl,listItem) + if xbmc.getCondVisibility("Window.IsActive(home)"): + xbmc.Player().play(playurl,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':