mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 17:14:00 +02:00
* New Track API supports loving without posting to the InfoSystem.
This commit is contained in:
@@ -395,8 +395,7 @@ LastFmConfig::syncLoved()
|
|||||||
foreach ( const Tomahawk::track_ptr& track, localToLove )
|
foreach ( const Tomahawk::track_ptr& track, localToLove )
|
||||||
{
|
{
|
||||||
// Don't use the infosystem as we don't want to tweet a few hundred times :)
|
// Don't use the infosystem as we don't want to tweet a few hundred times :)
|
||||||
DatabaseCommand_SocialAction* cmd = new DatabaseCommand_SocialAction( track, QString( "Love" ), QString( "true" ) );
|
track->setLoved( true, false );
|
||||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lastFmToLove.unite( lastFmToUnlove );
|
lastFmToLove.unite( lastFmToUnlove );
|
||||||
|
Reference in New Issue
Block a user