mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 08:04:25 +02:00
Fix Adium plugin with updated notfications
This commit is contained in:
@@ -136,13 +136,16 @@ AdiumPlugin::pushInfo( Tomahawk::InfoSystem::InfoPushData pushData )
|
|||||||
void
|
void
|
||||||
AdiumPlugin::audioStarted( const Tomahawk::InfoSystem::PushInfoPair pushInfoPair )
|
AdiumPlugin::audioStarted( const Tomahawk::InfoSystem::PushInfoPair pushInfoPair )
|
||||||
{
|
{
|
||||||
if ( !pushInfoPair.second.canConvert< Tomahawk::InfoSystem::InfoStringHash >() )
|
if ( !pushInfoPair.second.canConvert< QVariantMap >() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Tomahawk::InfoSystem::InfoStringHash hash = pushInfoPair.second.value< Tomahawk::InfoSystem::InfoStringHash >();
|
QVariantMap map = pushInfoPair.second.toMap();
|
||||||
|
|
||||||
qDebug() << Q_FUNC_INFO;
|
if ( !map.contains( "trackinfo" ) || !map[ "trackinfo" ].canConvert< Tomahawk::InfoSystem::InfoStringHash >() )
|
||||||
|
return;
|
||||||
|
|
||||||
|
InfoStringHash hash = map[ "trackinfo" ].value< Tomahawk::InfoSystem::InfoStringHash >();
|
||||||
|
|
||||||
if ( !hash.contains( "title" ) || !hash.contains( "artist" ) )
|
if ( !hash.contains( "title" ) || !hash.contains( "artist" ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user