only use the additional play when launched from widget (home active)

This commit is contained in:
Marcel van der Veldt 2015-05-03 18:02:53 +02:00
parent d349207781
commit cef2b67eba

View file

@ -117,6 +117,7 @@ class PlaybackUtils():
elif setup == "default":
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listItem)
#artwork only works from widgets with both resolvedurl and player command
if xbmc.getCondVisibility("Window.IsActive(home)"):
xbmc.Player().play(playurl,listItem)
def setArt(self, list,name,path):