mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-05 21:55:24 +00:00
Fixed last.fm double scrobble bug.
This commit is contained in:
parent
05ea062e03
commit
210c98b8ad
@ -5,6 +5,7 @@
|
||||
* fixed a bug that was preventing the update check from displaying a dialog on
|
||||
completion.
|
||||
* fixed now playing readout ellipsizing.
|
||||
* fixed a bug where last.fm scrobbles may get posted twice per track.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -498,7 +498,7 @@ void PlaybackService::OnTrackChanged(size_t pos, TrackPtr track) {
|
||||
this->TrackChanged(this->index, track);
|
||||
this->messageQueue.Remove(this, MESSAGE_MARK_TRACK_PLAYED);
|
||||
|
||||
if (track && this->GetPlaybackState() == PlaybackState::Playing) {
|
||||
if (track && this->transport->GetStreamState() == StreamState::Playing) {
|
||||
/* TODO: maybe consider folding Scrobble() the `MarkTrackAsPlayed` logic?
|
||||
needs a bit more thought */
|
||||
lastfm::Scrobble(track);
|
||||
|
Loading…
Reference in New Issue
Block a user