mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Fix stupid C&P mistake that broke scrobbling.
This commit is contained in:
@@ -81,13 +81,9 @@ Scrobbler::trackStarted( const Tomahawk::result_ptr& track )
|
|||||||
trackInfo["album"] = track->album()->name();
|
trackInfo["album"] = track->album()->name();
|
||||||
trackInfo["duration"] = QString::number( track->duration() );
|
trackInfo["duration"] = QString::number( track->duration() );
|
||||||
|
|
||||||
Tomahawk::InfoSystem::InfoRequestData requestData;
|
Tomahawk::InfoSystem::InfoSystem::instance()->pushInfo(
|
||||||
requestData.caller = s_scInfoIdentifier;
|
s_scInfoIdentifier, Tomahawk::InfoSystem::InfoSubmitNowPlaying,
|
||||||
requestData.type = Tomahawk::InfoSystem::InfoArtistImages;
|
QVariant::fromValue< Tomahawk::InfoSystem::InfoCriteriaHash >( trackInfo ) );
|
||||||
requestData.input = QVariant::fromValue< Tomahawk::InfoSystem::InfoCriteriaHash >( trackInfo );
|
|
||||||
requestData.customData = QVariantMap();
|
|
||||||
|
|
||||||
Tomahawk::InfoSystem::InfoSystem::instance()->getInfo( requestData );
|
|
||||||
|
|
||||||
m_scrobblePoint = ScrobblePoint( track->duration() / 2 );
|
m_scrobblePoint = ScrobblePoint( track->duration() / 2 );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user