partial fix bug #1000729 'Support more song fields in the search' - fixed sort for topic search - by song

Fixes: https://launchpad.net/bugs/1000729
This commit is contained in:
Chris Hill 2015-01-26 13:34:20 +00:00
parent e87d18bd67
commit da4eac9961

View File

@ -301,7 +301,8 @@ class SongMediaItem(MediaManagerItem):
log.debug('display results Topic')
self.list_view.clear()
for topic in search_results:
for song in topic.songs:
songs = sorted(topic.songs, key=lambda song: song.sort_key)
for song in songs:
# Do not display temporary songs
if song.temporary:
continue