Commit 8f373091 authored by Cédric Bellegarde's avatar Cédric Bellegarde

Fix an old bug, only play albums randomized if wanted by user

parent 5cfe5785
......@@ -176,7 +176,10 @@ class ArtistView(ArtistAlbumsView):
if album_tracks:
track = choice(album_tracks)
else:
album_id = choice(album_ids)
if App().settings.get_enum("shuffle") == Shuffle.ALBUMS:
album_id = choice(album_ids)
else:
album_id = album_ids[0]
album_tracks = Album(album_id).tracks
if album_tracks:
track = album_tracks[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment