mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-15 10:48:33 +01:00
Fix timestamps on scrobbled songs
This commit is contained in:
parent
1a930bf2b5
commit
2bde36a1c2
@ -273,7 +273,9 @@ void LastFMService::LoadNext(const QUrl &) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
lastfm::Track track = playlist_.dequeue();
|
lastfm::MutableTrack track = playlist_.dequeue();
|
||||||
|
track.stamp();
|
||||||
|
|
||||||
last_track_ = track;
|
last_track_ = track;
|
||||||
if (playlist_.empty()) {
|
if (playlist_.empty()) {
|
||||||
FetchMoreTracks();
|
FetchMoreTracks();
|
||||||
@ -385,8 +387,9 @@ void LastFMService::NowPlaying(const Song &song) {
|
|||||||
|
|
||||||
lastfm::MutableTrack mtrack(last_track_);
|
lastfm::MutableTrack mtrack(last_track_);
|
||||||
mtrack.stamp();
|
mtrack.stamp();
|
||||||
|
last_track_ = mtrack;
|
||||||
|
|
||||||
scrobbler_->nowPlaying(last_track_);
|
scrobbler_->nowPlaying(mtrack);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LastFMService::Scrobble() {
|
void LastFMService::Scrobble() {
|
||||||
@ -403,11 +406,13 @@ void LastFMService::Love() {
|
|||||||
|
|
||||||
lastfm::MutableTrack mtrack(last_track_);
|
lastfm::MutableTrack mtrack(last_track_);
|
||||||
mtrack.love();
|
mtrack.love();
|
||||||
|
last_track_ = mtrack;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LastFMService::Ban() {
|
void LastFMService::Ban() {
|
||||||
lastfm::MutableTrack mtrack(last_track_);
|
lastfm::MutableTrack mtrack(last_track_);
|
||||||
mtrack.ban();
|
mtrack.ban();
|
||||||
|
last_track_ = mtrack;
|
||||||
|
|
||||||
Scrobble();
|
Scrobble();
|
||||||
LoadNext(last_url_);
|
LoadNext(last_url_);
|
||||||
|
Loading…
Reference in New Issue
Block a user