From d1476e5808f0b9d5e841e52982e85ef9c514ae9d Mon Sep 17 00:00:00 2001 From: jbkaiser Date: Sat, 11 Apr 2020 23:16:49 +0200 Subject: [PATCH] Fix duplicate lms event at playback start --- resources/lib/httpproxy.py | 2 +- resources/lib/player_monitor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/httpproxy.py b/resources/lib/httpproxy.py index 762f6e2..90c5ba6 100644 --- a/resources/lib/httpproxy.py +++ b/resources/lib/httpproxy.py @@ -60,7 +60,7 @@ def lms(self, filename, **kwargs): if spotty_user != cur_user: log_msg("user change detected") xbmc.executebuiltin("SetProperty(spotify-cmd,__LOGOUT__,Home)") - + if "start" in event: log_msg("playback start requested by connect") self.__connect_player.handle_lms_event_change() diff --git a/resources/lib/player_monitor.py b/resources/lib/player_monitor.py index 66294cb..03d8a96 100644 --- a/resources/lib/player_monitor.py +++ b/resources/lib/player_monitor.py @@ -117,7 +117,7 @@ def start_new_playback(self, track_id): self.__playlist.add(url, li) self.__add_nexttrack_to_playlist() log_msg("Run Spotipy command: seek_track") - self.__sp.seek_track(0) # this is done to sync remote devices with current playback position +## self.__sp.seek_track(0) # this is done to sync remote devices with current playback position self.play(self.__playlist) if "NEXTTRACK" in self.__lms_event_stack: self.__lms_event_stack.remove("NEXTTRACK") # is done loading next track