@@ -569,10 +569,11 @@ DatabaseImpl::resultFromHint( const Tomahawk::query_ptr& origquery )
569
569
" composer.name as cmpname, " // 14
570
570
" file.source, " // 15
571
571
" file_join.albumpos, " // 16
572
- " artist.id as artid, " // 17
573
- " album.id as albid, " // 18
574
- " composer.id as cmpid, " // 19
575
- " track_attributes.v as year " // 20
572
+ " file_join.discnumber, " // 17
573
+ " artist.id as artid, " // 18
574
+ " album.id as albid, " // 19
575
+ " composer.id as cmpid, " // 20
576
+ " track_attributes.v as year " // 21
576
577
" FROM file, file_join, artist, track, track_attributes "
577
578
" LEFT JOIN album ON album.id = file_join.album "
578
579
" LEFT JOIN artist AS composer on composer.id = file_join.composer "
@@ -610,9 +611,9 @@ DatabaseImpl::resultFromHint( const Tomahawk::query_ptr& origquery )
610
611
}
611
612
612
613
res = Tomahawk::Result::get ( url );
613
- Tomahawk::artist_ptr artist = Tomahawk::Artist::get ( query.value ( 17 ).toUInt (), query.value ( 11 ).toString () );
614
- Tomahawk::album_ptr album = Tomahawk::Album::get ( query.value ( 18 ).toUInt (), query.value ( 12 ).toString (), artist );
615
- Tomahawk::artist_ptr composer = Tomahawk::Artist::get ( query.value ( 19 ).toUInt (), query.value ( 14 ).toString () );
614
+ Tomahawk::artist_ptr artist = Tomahawk::Artist::get ( query.value ( 18 ).toUInt (), query.value ( 11 ).toString () );
615
+ Tomahawk::album_ptr album = Tomahawk::Album::get ( query.value ( 19 ).toUInt (), query.value ( 12 ).toString (), artist );
616
+ Tomahawk::artist_ptr composer = Tomahawk::Artist::get ( query.value ( 20 ).toUInt (), query.value ( 14 ).toString () );
616
617
617
618
res->setModificationTime ( query.value ( 1 ).toUInt () );
618
619
res->setSize ( query.value ( 2 ).toUInt () );
@@ -625,10 +626,11 @@ DatabaseImpl::resultFromHint( const Tomahawk::query_ptr& origquery )
625
626
res->setScore ( 1.0 );
626
627
res->setTrack ( query.value ( 13 ).toString () );
627
628
res->setAlbumPos ( query.value ( 16 ).toUInt () );
629
+ res->setDiscNumber ( query.value ( 17 ).toUInt () );
628
630
res->setRID ( uuid () );
629
631
res->setTrackId ( query.value ( 9 ).toUInt () );
630
632
res->setCollection ( s->collection () );
631
- res->setYear ( query.value ( 20 ).toUInt () );
633
+ res->setYear ( query.value ( 21 ).toUInt () );
632
634
}
633
635
634
636
return res;
0 commit comments