Skip to content

Commit

Permalink
Fix duplicate lms event at playback start
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkaiser committed Apr 11, 2020
1 parent 9197d46 commit d1476e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/lib/httpproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/player_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1476e5

Please sign in to comment.