diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-06 07:28:58 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-06 07:28:58 +0000 |
| commit | 01b8ac6ff616f6d82a7767aa600afc3a6607c138 (patch) | |
| tree | cd6c3e95944dea1a70d2538e51bf6d1b99e77a3e /src/plugins/General/scrobbler/scrobbler.cpp | |
| parent | f2bd4da370fa45f953b308d305c81eb49bda050a (diff) | |
| download | qmmp-01b8ac6ff616f6d82a7767aa600afc3a6607c138.tar.gz qmmp-01b8ac6ff616f6d82a7767aa600afc3a6607c138.tar.bz2 qmmp-01b8ac6ff616f6d82a7767aa600afc3a6607c138.zip | |
fixed cache scrobbling
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1007 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/scrobbler/scrobbler.cpp')
| -rw-r--r-- | src/plugins/General/scrobbler/scrobbler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp index 34defb2b0..c263ba8b9 100644 --- a/src/plugins/General/scrobbler/scrobbler.cpp +++ b/src/plugins/General/scrobbler/scrobbler.cpp @@ -324,9 +324,9 @@ void Scrobbler::submit() qDebug("Scrobbler[%s]: submit request", qPrintable(m_name)); if (m_songCache.isEmpty()) return; - m_submitedSongs = m_songCache.size(); + m_submitedSongs = qMin(m_songCache.size(),25); QString body = QString("s=%1").arg(m_session); - for (int i = 0; i < qMin(m_songCache.size(), 25); ++i) + for (int i = 0; i < m_submitedSongs; ++i) { SongInfo info = m_songCache[i]; body += QString("&a[%9]=%1&t[%9]=%2&i[%9]=%3&o[%9]=%4&r[%9]=%5&l[%9]=%6&b[%9]=%7&n[%9]=%8&m[%9]=") |
