mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Loop
This commit is contained in:
@@ -127,11 +127,13 @@ ItunesParser::itunesResponseLookupFinished()
|
|||||||
|
|
||||||
foreach(QVariant itune, itunesResponse){
|
foreach(QVariant itune, itunesResponse){
|
||||||
QString title, artist, album;
|
QString title, artist, album;
|
||||||
if( itune.toMap().value( "wrapperType" ).toString().contains( "track" ) ){
|
QVariantMap ituneMap = itune.toMap();
|
||||||
|
|
||||||
title = itune.toMap().value( "trackName" ).toString();
|
if( ituneMap.value( "wrapperType" ).toString().contains( "track" ) ){
|
||||||
artist = itune.toMap().value( "artistName" ).toString();
|
|
||||||
album = itune.toMap().value( "collectionName" ).toString();
|
title = ituneMap.value( "trackName" ).toString();
|
||||||
|
artist = ituneMap.value( "artistName" ).toString();
|
||||||
|
album = ituneMap.value( "collectionName" ).toString();
|
||||||
if ( title.isEmpty() && artist.isEmpty() ) // don't have enough...
|
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;
|
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 tracks( const QList< Tomahawk::query_ptr > tracks );
|
||||||
void playlist( const Tomahawk::query_ptr& playlist );
|
void playlist( const Tomahawk::query_ptr& playlist );
|
||||||
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void itunesResponseLookupFinished();
|
void itunesResponseLookupFinished();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user