Stamp last.fm tracks before checking if they're valid scrobbles
This commit is contained in:
parent
5d8f1fe872
commit
b799543272
|
@ -423,7 +423,9 @@ void LastFMService::NowPlaying(const Song &song) {
|
|||
if (!InitScrobbler())
|
||||
return;
|
||||
|
||||
last_track_ = TrackFromSong(song);
|
||||
lastfm::MutableTrack mtrack(TrackFromSong(song));
|
||||
mtrack.stamp();
|
||||
last_track_ = mtrack;
|
||||
|
||||
//check immediately if the song is valid
|
||||
Scrobble::Invalidity invalidity;
|
||||
|
@ -434,10 +436,6 @@ void LastFMService::NowPlaying(const Song &song) {
|
|||
return;
|
||||
}
|
||||
|
||||
lastfm::MutableTrack mtrack(last_track_);
|
||||
mtrack.stamp();
|
||||
last_track_ = mtrack;
|
||||
|
||||
scrobbler_->nowPlaying(mtrack);
|
||||
}
|
||||
|
||||
|
|
|
@ -1062,7 +1062,7 @@ void MainWindow::UpdateTrackPosition() {
|
|||
// Update the tray icon every 10 seconds
|
||||
if (position % 10 == 0) {
|
||||
qDebug() << "position" << position << "scrobble point" << scrobble_point
|
||||
<< "has_scrobbled" << (playlists_->active()->get_lastfm_status() == Playlist::LastFM_Scrobbled);
|
||||
<< "status" << playlists_->active()->get_lastfm_status();
|
||||
tray_icon_->SetProgress(double(position) / length * 100);
|
||||
|
||||
//if we're waiting for the scrobble point, update the icon
|
||||
|
|
Loading…
Reference in New Issue