From e1b086e3a45c0bdd36e55882d70a1d28b1270b15 Mon Sep 17 00:00:00 2001 From: mack-t Date: Sun, 18 Mar 2012 16:12:19 -0400 Subject: [PATCH] Add albumpos, discnumber and score information from tomahawk resolver (cherry picked from commit 21eeab61d8e871f9d1b1dbb7540c274e6e8781d8) --- src/libtomahawk/resolvers/qtscriptresolver.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libtomahawk/resolvers/qtscriptresolver.cpp b/src/libtomahawk/resolvers/qtscriptresolver.cpp index d518c15f2..92d9e4506 100644 --- a/src/libtomahawk/resolvers/qtscriptresolver.cpp +++ b/src/libtomahawk/resolvers/qtscriptresolver.cpp @@ -392,10 +392,13 @@ QtScriptResolver::parseResultVariantList( const QVariantList& reslist ) rp->setArtist( ap ); rp->setAlbum( Tomahawk::Album::get( ap, m.value( "album" ).toString(), false ) ); rp->setTrack( m.value( "track" ).toString() ); + rp->setAlbumPos( m.value( "albumpos" ).toUInt() ); rp->setBitrate( m.value( "bitrate" ).toUInt() ); rp->setSize( m.value( "size" ).toUInt() ); rp->setRID( uuid() ); rp->setFriendlySource( name() ); + rp->setScore( m.value( "score" ).toFloat() ); + rp->setDiscNumber( m.value( "discnumber" ).toUInt() ); if ( m.contains( "year" ) ) {