From fee88ee8a79e282852cf284f150f10a7d297a48c Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 27 Jun 2012 18:36:37 +0000 Subject: added scrobbler cache synchronization (patch by Ferdinand Vesely) (Closes issue 535) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2748 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/scrobbler/scrobbler2.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/plugins/General/scrobbler/scrobbler2.cpp') diff --git a/src/plugins/General/scrobbler/scrobbler2.cpp b/src/plugins/General/scrobbler/scrobbler2.cpp index 2097d6696..f00340507 100644 --- a/src/plugins/General/scrobbler/scrobbler2.cpp +++ b/src/plugins/General/scrobbler/scrobbler2.cpp @@ -261,9 +261,14 @@ void Scrobbler2::processResponse(QNetworkReply *reply) m_songCache.removeFirst (); } if (!m_songCache.isEmpty()) //submit remaining songs + { submit(); - else + } + else + { + syncCache(); // update the cache file to reflect the empty cache updateMetaData(); + } } else if(error_code == "9") //invalid session key { -- cgit v1.2.3-13-gbd6f