Fix resume

This commit is contained in:
angelblue05 2018-01-26 04:32:15 -06:00
parent 6c1bd5cf47
commit 4aba863c87

View file

@ -89,8 +89,8 @@ class PlaybackUtils(object):
self.stack[0][1].setPath(self.stack[0][0])
try:
if (not xbmc.getCondVisibility('Window.IsMedia') and
(self.item['Type'] == "Audio" and not xbmc.getCondVisibility('Integer.IsGreater(Playlist.Length(music),1)')) or
(not xbmc.getCondVisibility('Integer.IsGreater(Playlist.Length(video),1)'))):
((self.item['Type'] == "Audio" and not xbmc.getCondVisibility('Integer.IsGreater(Playlist.Length(music),1)')) or
not xbmc.getCondVisibility('Integer.IsGreater(Playlist.Length(video),1)'))):
# widgets do not fill artwork correctly
log.info("Detected widget.")
raise IndexError