mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-13 12:31:52 +02:00
* Fixed Javascript resolvers not working / breaking Tomahawk.
This commit is contained in:
parent
2cd4d7a682
commit
7c6304beea
@ -285,9 +285,9 @@ QtScriptResolver::parseResultVariantList( const QVariantList& reslist )
|
||||
QVariantMap m = rv.toMap();
|
||||
|
||||
Tomahawk::result_ptr rp( new Tomahawk::Result() );
|
||||
Tomahawk::artist_ptr ap = Tomahawk::Artist::get( m.value( "artist" ).toString(), true );
|
||||
Tomahawk::artist_ptr ap = Tomahawk::Artist::get( m.value( "artist" ).toString() );
|
||||
rp->setArtist( ap );
|
||||
rp->setAlbum( Tomahawk::Album::get( ap, m.value( "album" ).toString(), true ) );
|
||||
rp->setAlbum( Tomahawk::Album::get( 0, m.value( "album" ).toString(), ap ) );
|
||||
rp->setTrack( m.value( "track" ).toString() );
|
||||
rp->setBitrate( m.value( "bitrate" ).toUInt() );
|
||||
rp->setUrl( m.value( "url" ).toString() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user