added track disc number sort

This commit is contained in:
aj 2020-08-30 23:04:58 +01:00
parent 10ee5501e8
commit c54ecda60d

View File

@ -42,6 +42,7 @@ def sort_artist_album_track_number(tracks: List, inner_tracks_only: bool = False
if hasattr(i, 'album') and isinstance(getattr(i, 'album'), SimplifiedAlbum)],
key=lambda x: (x[0].album.artists[0].name.lower(),
x[0].album.name.lower(),
x[0].disc_number,
x[0].track_number))
if inner_tracks_only:
return [i for i, w in sorted_tracks]