Added some debug output for last.fm tracks caching

This commit is contained in:
Andrea Decorte 2011-04-30 08:36:44 +00:00
parent a2ceca673c
commit 1c0a0f17dd
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@
#include <lastfm/misc.h>
#include <lastfm/RadioStation>
#include <lastfm/Scrobble>
#include <lastfm/ScrobbleCache>
#include <lastfm/ScrobblePoint>
#include <lastfm/ws.h>
#include <lastfm/XmlQuery>
@ -512,6 +513,8 @@ void LastFMService::Scrobble() {
if (!InitScrobbler())
return;
ScrobbleCache cache(lastfm::ws::Username);
qLog(Debug) << "There are" << cache.tracks().count() << "tracks in the last.fm cache.";
scrobbler_->cache(last_track_);
// Let's mark a track as cached, useful when the connection is down