mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Loop
This commit is contained in:
@@ -127,11 +127,13 @@ ItunesParser::itunesResponseLookupFinished()
|
||||
|
||||
foreach(QVariant itune, itunesResponse){
|
||||
QString title, artist, album;
|
||||
if( itune.toMap().value( "wrapperType" ).toString().contains( "track" ) ){
|
||||
QVariantMap ituneMap = itune.toMap();
|
||||
|
||||
title = itune.toMap().value( "trackName" ).toString();
|
||||
artist = itune.toMap().value( "artistName" ).toString();
|
||||
album = itune.toMap().value( "collectionName" ).toString();
|
||||
if( ituneMap.value( "wrapperType" ).toString().contains( "track" ) ){
|
||||
|
||||
title = ituneMap.value( "trackName" ).toString();
|
||||
artist = ituneMap.value( "artistName" ).toString();
|
||||
album = ituneMap.value( "collectionName" ).toString();
|
||||
if ( title.isEmpty() && artist.isEmpty() ) // don't have enough...
|
||||
{
|
||||
tLog() << "Didn't get an artist and track name from itunes, not enough to build a query on. Aborting" << title << artist << album;
|
||||
|
@@ -51,6 +51,7 @@ signals:
|
||||
void tracks( const QList< Tomahawk::query_ptr > tracks );
|
||||
void playlist( const Tomahawk::query_ptr& playlist );
|
||||
|
||||
|
||||
private slots:
|
||||
void itunesResponseLookupFinished();
|
||||
|
||||
|
Reference in New Issue
Block a user