From 7eb233d3f9c172108058bbd063e795899d339651 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 27 Mar 2018 05:36:46 -0500 Subject: [PATCH] Prevent playback error --- resources/lib/playbackutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/playbackutils.py b/resources/lib/playbackutils.py index 4bcd0fa4..8b03d049 100644 --- a/resources/lib/playbackutils.py +++ b/resources/lib/playbackutils.py @@ -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):