mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
* Fixed Last.fm history importing.
This commit is contained in:
@@ -140,8 +140,8 @@ LastFmConfig::onHistoryLoaded()
|
|||||||
|
|
||||||
foreach ( lastfm::XmlQuery e, lfm.children( "track" ) )
|
foreach ( lastfm::XmlQuery e, lfm.children( "track" ) )
|
||||||
{
|
{
|
||||||
// tDebug() << "Found:" << e["artist"].text() << e["name"].text() << e["date"].attribute( "uts" ).toUInt();
|
// tDebug() << "Found:" << e.children( "artist" ).first()["name"].text() << e["name"].text() << e["date"].attribute( "uts" ).toUInt();
|
||||||
Tomahawk::query_ptr query = Query::get( e["artist"].text(), e["name"].text(), QString(), QString(), false );
|
Tomahawk::query_ptr query = Query::get( e.children( "artist" ).first()["name"].text(), e["name"].text(), QString(), QString(), false );
|
||||||
if ( query.isNull() )
|
if ( query.isNull() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user