diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-06-27 18:36:37 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-06-27 18:36:37 +0000 |
| commit | fee88ee8a79e282852cf284f150f10a7d297a48c (patch) | |
| tree | bc9b1f3c46735a3d83d08c0a639af8883a82337f /src/plugins/General/scrobbler/scrobbler2.cpp | |
| parent | 029250edea88fdd5495a5b79aeff3521c2bb0964 (diff) | |
| download | qmmp-fee88ee8a79e282852cf284f150f10a7d297a48c.tar.gz qmmp-fee88ee8a79e282852cf284f150f10a7d297a48c.tar.bz2 qmmp-fee88ee8a79e282852cf284f150f10a7d297a48c.zip | |
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
Diffstat (limited to 'src/plugins/General/scrobbler/scrobbler2.cpp')
| -rw-r--r-- | src/plugins/General/scrobbler/scrobbler2.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 { |
