From d14e14d25a0ddd76fe940cd04a4996aa98676551 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 24 May 2012 16:09:44 +0200 Subject: [PATCH] * Workaround for scrobbling duration-less results. --- src/accounts/lastfm/LastFmInfoPlugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/accounts/lastfm/LastFmInfoPlugin.cpp b/src/accounts/lastfm/LastFmInfoPlugin.cpp index 3217e9d51..30aed0d06 100644 --- a/src/accounts/lastfm/LastFmInfoPlugin.cpp +++ b/src/accounts/lastfm/LastFmInfoPlugin.cpp @@ -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(); }