The random plugin with the sensible flavour doesn't honour the history
I've tried to make a merge request, but I'm getting a 404 when clicking New merge request
.
In random.py, on line 88 if art not in played_art:
is always True, because played_art
is a set of filenames, while art
is an artist name.
A solution that worked in my tests:
Line 58:
artists = [tr[0] for tr in tracks_from_db]
instead of:
artists = [tr[-1] for tr in tracks_from_db]
Then line 90 (this error never occured, because of the issue above):
artists.remove(art)
instead of:
artists.pop(art)
You can find the changes in this commit.