Removed popularity weight in similar radio, to avoid filter bubbles

This commit is contained in:
Eliot Berriot 2019-01-31 14:55:05 +01:00
parent e6a5f69f5b
commit c16258ed14
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 1 additions and 1 deletions

View File

@ -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")