diff --git a/api/funkwhale_api/radios/radios.py b/api/funkwhale_api/radios/radios.py index 9ccb94e4f283c1187eba38a4e353903af8ac51c3..8ca15a026fd523feae3ecf094e9ec1bf66996005 100644 --- a/api/funkwhale_api/radios/radios.py +++ b/api/funkwhale_api/radios/radios.py @@ -221,7 +221,7 @@ class SimilarRadio(RelatedObjectRadio): next_candidates = [n for n in next_candidates if n[0] in matching_tracks] if not next_candidates: raise NextNotFound() - return weighted_choice(next_candidates) + return random.choice([c[0] for c in next_candidates]) @registry.register(name="artist")