mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
More sometimes-useful debug
This commit is contained in:
@@ -490,11 +490,15 @@ AudioEngine::loadNextTrack()
|
|||||||
|
|
||||||
if ( !m_playlist.isNull() && result.isNull() )
|
if ( !m_playlist.isNull() && result.isNull() )
|
||||||
{
|
{
|
||||||
|
tDebug( LOGEXTRA ) << Q_FUNC_INFO << " loading playlist's next item";
|
||||||
result = m_playlist.data()->nextItem();
|
result = m_playlist.data()->nextItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !result.isNull() )
|
if ( !result.isNull() )
|
||||||
|
{
|
||||||
|
tDebug( LOGEXTRA ) << Q_FUNC_INFO << " got next item, loading track";
|
||||||
loadTrack( result );
|
loadTrack( result );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( !m_playlist.isNull() && m_playlist.data()->retryMode() == Tomahawk::PlaylistInterface::Retry )
|
if ( !m_playlist.isNull() && m_playlist.data()->retryMode() == Tomahawk::PlaylistInterface::Retry )
|
||||||
|
@@ -45,11 +45,13 @@ DatabaseCommand_LogPlayback::postCommitHook()
|
|||||||
|
|
||||||
if ( m_action == Finished )
|
if ( m_action == Finished )
|
||||||
{
|
{
|
||||||
|
tDebug( LOGEXTRA ) << Q_FUNC_INFO << " logging finished from source " << source().data()->id();
|
||||||
emit trackPlayed( q );
|
emit trackPlayed( q );
|
||||||
}
|
}
|
||||||
// if the play time is more than 10 minutes in the past, ignore
|
// 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 )
|
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 );
|
emit trackPlaying( q );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user