Add some more debugging output for deciding when to scrobble a song
This commit is contained in:
parent
e8101273f0
commit
e5bc2be85f
@ -297,6 +297,7 @@ void Player::SeekTo(int seconds) {
|
||||
engine_->Seek(nanosec);
|
||||
|
||||
// If we seek the track we don't want to submit it to last.fm
|
||||
qDebug() << "Track seeked to" << nanosec << "ns - not scrobbling";
|
||||
playlists_->active()->set_scrobbled(true);
|
||||
|
||||
emit Seeked(nanosec / 1000);
|
||||
|
@ -995,6 +995,7 @@ void MainWindow::UpdateTrackPosition() {
|
||||
|
||||
// Time to scrobble?
|
||||
if (!playlists_->active()->has_scrobbled() && position >= scrobble_point) {
|
||||
qDebug() << "Scrobbling at" << scrobble_point;
|
||||
#ifdef HAVE_LIBLASTFM
|
||||
radio_model_->RadioModel::Service<LastFMService>()->Scrobble();
|
||||
#endif
|
||||
@ -1011,6 +1012,8 @@ 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()->has_scrobbled();
|
||||
tray_icon_->SetProgress(double(position) / length * 100);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user