Changed playback method detection (#123)

This commit is contained in:
Sebastian S 2018-01-19 00:49:02 +01:00 committed by angelblue05
parent d3d9721d6c
commit a9e4cebed4

View file

@ -88,8 +88,8 @@ class PlaybackUtils(object):
# Stack: [(url, listitem), (url, ...), ...]
self.stack[0][1].setPath(self.stack[0][0])
try:
if (not xbmc.getCondVisibility('Window.IsVisible(MyVideoNav.xml)') and
not xbmc.getCondVisibility('Window.IsVisible(VideoFullScreen.xml)')):
if (not xbmc.getCondVisibility('Window.IsMedia') and
not xbmc.getCondVisibility('Integer.IsGreater(Playlist.Length(video),1)')):
# widgets do not fill artwork correctly
log.info("Detected widget.")
raise IndexError