From 2248c16122f9986aa91a0227a7602e3f21ef4d12 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 25 Feb 2010 19:13:42 +0000 Subject: scrobbler: fixed notification git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1583 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/scrobbler/scrobbler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/General/scrobbler/scrobbler.cpp') 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) -- cgit v1.2.3-13-gbd6f