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

* Workaround for scrobbling duration-less results.

This commit is contained in:
Christian Muehlhaeuser 2012-05-24 16:09:44 +02:00
parent fde130ef9f
commit d14e14d25a

View File

@ -212,6 +212,11 @@ LastFmInfoPlugin::scrobble()
return;
tLog() << Q_FUNC_INFO << "Scrobbling now:" << m_track.toString();
// FIXME: workaround for the duration-less dilandau (and others) tracks
if ( m_track.duration() == 0 )
m_track.setDuration( 31 );
m_scrobbler->cache( m_track );
m_scrobbler->submit();
}