diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-25 19:13:42 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-25 19:13:42 +0000 |
| commit | 2248c16122f9986aa91a0227a7602e3f21ef4d12 (patch) | |
| tree | d6e4bdb6dda9c26864423957179bee576e191616 /src | |
| parent | bb5260ff7fc4a1a99654b39687b9d9feaeb9e958 (diff) | |
| download | qmmp-2248c16122f9986aa91a0227a7602e3f21ef4d12.tar.gz qmmp-2248c16122f9986aa91a0227a7602e3f21ef4d12.tar.bz2 qmmp-2248c16122f9986aa91a0227a7602e3f21ef4d12.zip | |
scrobbler: fixed notification
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1583 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/General/scrobbler/scrobbler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp index 090c3e2f1..be17216f0 100644 --- a/src/plugins/General/scrobbler/scrobbler.cpp +++ b/src/plugins/General/scrobbler/scrobbler.cpp @@ -172,7 +172,7 @@ void Scrobbler::updateMetaData() metadata[Qmmp::ALBUM].replace("&", QUrl::toPercentEncoding("&")); metadata[Qmmp::TITLE].replace("&", QUrl::toPercentEncoding("&")); m_song = SongInfo(metadata, m_core->totalTime()/1000); - if (isReady() && !m_notificationReply) + if (isReady() && !m_notificationReply && !m_submitReply) sendNotification(m_song); } } @@ -261,6 +261,8 @@ void Scrobbler::processResponse(QNetworkReply *reply) } if (!m_songCache.isEmpty()) //submit remaining songs submit(); + else + updateMetaData(); } } else if (reply == m_notificationReply) |
