1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-22 08:49:42 +01:00

More sometimes-useful debug

This commit is contained in:
Jeff Mitchell 2011-08-26 00:40:01 -04:00
parent 146eaa226f
commit b86f6301ff
2 changed files with 6 additions and 0 deletions

@ -490,11 +490,15 @@ AudioEngine::loadNextTrack()
if ( !m_playlist.isNull() && result.isNull() )
{
tDebug( LOGEXTRA ) << Q_FUNC_INFO << " loading playlist's next item";
result = m_playlist.data()->nextItem();
}
if ( !result.isNull() )
{
tDebug( LOGEXTRA ) << Q_FUNC_INFO << " got next item, loading track";
loadTrack( result );
}
else
{
if ( !m_playlist.isNull() && m_playlist.data()->retryMode() == Tomahawk::PlaylistInterface::Retry )

@ -45,11 +45,13 @@ DatabaseCommand_LogPlayback::postCommitHook()
if ( m_action == Finished )
{
tDebug( LOGEXTRA ) << Q_FUNC_INFO << " logging finished from source " << source().data()->id();
emit trackPlayed( q );
}
// if the play time is more than 10 minutes in the past, ignore
else if ( m_action == Started && QDateTime::fromTime_t( playtime() ).secsTo( QDateTime::currentDateTime() ) < 600 )
{
tDebug( LOGEXTRA ) << Q_FUNC_INFO << " logging started from source " << source().data()->id();
emit trackPlaying( q );
}