aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-02-25 19:13:42 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-02-25 19:13:42 +0000
commit2248c16122f9986aa91a0227a7602e3f21ef4d12 (patch)
treed6e4bdb6dda9c26864423957179bee576e191616
parentbb5260ff7fc4a1a99654b39687b9d9feaeb9e958 (diff)
downloadqmmp-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
-rw-r--r--src/plugins/General/scrobbler/scrobbler.cpp4
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)