1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 01:09:42 +01:00

Add albumpos, discnumber and score information from tomahawk resolver

(cherry picked from commit 21eeab61d8e871f9d1b1dbb7540c274e6e8781d8)
This commit is contained in:
mack-t 2012-03-18 16:12:19 -04:00 committed by Leo Franchi
parent 27147a0140
commit e1b086e3a4

View File

@ -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" ) )
{