mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Workaround for scrobbling duration-less results.
This commit is contained in:
@@ -212,6 +212,11 @@ LastFmInfoPlugin::scrobble()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
tLog() << Q_FUNC_INFO << "Scrobbling now:" << m_track.toString();
|
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->cache( m_track );
|
||||||
m_scrobbler->submit();
|
m_scrobbler->submit();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user