1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Add albumpos, discnumber and score information from tomahawk resolver

(cherry picked from commit 21eeab61d8)
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" ) )
{