aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler/librefmscrobbler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/scrobbler/librefmscrobbler.cpp')
-rw-r--r--src/plugins/General/scrobbler/librefmscrobbler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/General/scrobbler/librefmscrobbler.cpp b/src/plugins/General/scrobbler/librefmscrobbler.cpp
index 7ececc155..56ec4b7ea 100644
--- a/src/plugins/General/scrobbler/librefmscrobbler.cpp
+++ b/src/plugins/General/scrobbler/librefmscrobbler.cpp
@@ -90,9 +90,13 @@ void LibrefmScrobbler::setState(Qmmp::State state)
if (previousState != Qmmp::Paused)
{
m_start_ts = QDateTime::currentDateTime().toTime_t();
- m_time->restart();
elapsed = 0;
}
+ else
+ {
+ qDebug("LibrefmScrobbler: resuming from %d seconds played", elapsed / 1000);
+ }
+ m_time->restart();
if (!isReady() && !m_handshakeReply)
handshake();
break;
@@ -120,6 +124,7 @@ void LibrefmScrobbler::setState(Qmmp::State state)
default:
;
}
+ previousState = state;
}
void LibrefmScrobbler::updateMetaData()