Skip to content

Commit

Permalink
Merge pull request #149 from guandalf/specialplaylistloaderfix
Browse files Browse the repository at this point in the history
Starred playlist showed one entry less than total
  • Loading branch information
mazkolain committed Jun 18, 2014
2 parents ed06f28 + 69bb183 commit 03b050e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/libs/spotimcgui/views/playlists/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def sort_func(track_index):
if track.is_loaded():
return -playlist.track_create_time(track_index)

track_indexes = range(playlist.num_tracks() - 1)
track_indexes = range(playlist.num_tracks())
sorted_indexes = sorted(track_indexes, key=sort_func)

return [playlist.track(index) for index in sorted_indexes]
Expand Down

0 comments on commit 03b050e

Please sign in to comment.