1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

Add debug for jason

This commit is contained in:
Leo Franchi
2012-03-01 09:12:27 -05:00
parent 8b4b4a8f0c
commit 25ec5cb432
2 changed files with 6 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ using namespace Tomahawk;
Album::~Album() Album::~Album()
{ {
qDebug() << "DELETING ALBUM:" << m_name;
delete m_cover; delete m_cover;
} }

View File

@@ -678,6 +678,9 @@ DropJob::onTracksAdded( const QList<Tomahawk::query_ptr>& tracksList )
m_dropJob = 0; 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 ); m_resultList.append( tracksList );
if ( --m_queryCount == 0 ) 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 // 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. // 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 // 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 ) foreach( const query_ptr& track, tracks )
{ {
if ( !track->playable() && !track->solved() && track->results().size() ) // we have offline results 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 ); track->setResolveFinished( false );
Pipeline::instance()->resolve( track ); Pipeline::instance()->resolve( track );
} }