From 25ec5cb432c3e630447761b2f0a2711eb9a19abe Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Thu, 1 Mar 2012 09:12:27 -0500 Subject: [PATCH] Add debug for jason --- src/libtomahawk/album.cpp | 1 + src/libtomahawk/dropjob.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/libtomahawk/album.cpp b/src/libtomahawk/album.cpp index f3e426a0a..6e39a0ced 100644 --- a/src/libtomahawk/album.cpp +++ b/src/libtomahawk/album.cpp @@ -31,6 +31,7 @@ using namespace Tomahawk; Album::~Album() { + qDebug() << "DELETING ALBUM:" << m_name; delete m_cover; } diff --git a/src/libtomahawk/dropjob.cpp b/src/libtomahawk/dropjob.cpp index 3de74cace..c1cfd9271 100644 --- a/src/libtomahawk/dropjob.cpp +++ b/src/libtomahawk/dropjob.cpp @@ -678,6 +678,9 @@ DropJob::onTracksAdded( const QList& tracksList ) m_dropJob = 0; } + foreach ( const query_ptr & q, tracksList ) + qDebug() << "DropJob got track added:" << q->track() << q->artist() << q->solved() << q->playable() << q->results().count(); + m_resultList.append( tracksList ); if ( --m_queryCount == 0 ) @@ -700,10 +703,12 @@ DropJob::tracksFromDB( const QList< query_ptr >& tracks ) // Tracks that we get from databasecommand_alltracks are resolved only against the database and explicitly marked // as finished. if the source they resolve to is offline they will not resolve against any resolver. // explicitly resolve them if they fall in that case first + qDebug() << "Got track results in dropjob from database" << tracks.size(); foreach( const query_ptr& track, tracks ) { if ( !track->playable() && !track->solved() && track->results().size() ) // we have offline results { + qDebug() << "Found a db track that is not playable but marked as finished, forcing re-resolve"; track->setResolveFinished( false ); Pipeline::instance()->resolve( track ); }