Bug 13802 - playlist and x/y not updated if next song is same (trackid) as previous
: playlist and x/y not updated if next song is same (trackid) as previous
Status: NEW
Product: SqueezePlay
Classification: Unclassified
Component: Now Playing
: unspecified
: PC Other
: -- normal (vote)
: 8.0.0
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-01 11:55 UTC by Wadzinski Tom
Modified: 2009-09-01 11:55 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wadzinski Tom 2009-09-01 11:55:34 UTC
This is a possible fix, but then a track change notification would occur if you delete a cp (current playlist) track prior to the currently playing track:

-   if self.nowPlaying ~= nowPlaying then
+   if self.nowPlaying ~= nowPlaying or self.state["playlist_cur_index"] ~= oldState["playlist_cur_index"] then
       log:warn('notify_playerTrackChange')
       self.nowPlaying = nowPlaying
       self.jnt:notify('playerTrackChange', self, nowPlaying)
   end