Prevent playback error

This commit is contained in:
angelblue05 2018-03-27 05:36:46 -05:00
parent 10a7985a83
commit 7eb233d3f9

View file

@ -158,8 +158,8 @@ class PlaybackUtils(object):
index += 1
if force_play:
xbmcplugin.setResolvedUrl(int(sys.argv[1]), False, self.stack[0][1])
xbmc.Player().play(self.playlist)
if len(sys.argv) > 1: xbmcplugin.setResolvedUrl(int(sys.argv[1]), False, self.stack[0][1])
xbmc.Player().play(self.playlist, windowed=False)
def set_playlist(self, play_url, item_id, listitem, seektime=None, db_id=None):