Skip to content

Commit

Permalink
Add albumpos, discnumber and score information from tomahawk resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
mack-t committed Mar 18, 2012
1 parent 0c4ac58 commit 21eeab6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libtomahawk/resolvers/qtscriptresolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" ) )
{
Expand Down

0 comments on commit 21eeab6

Please sign in to comment.