kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Removed popularity weight in similar radio, to avoid filter bubbles
rodzic
e6a5f69f5b
commit
c16258ed14
|
@ -221,7 +221,7 @@ class SimilarRadio(RelatedObjectRadio):
|
||||||
next_candidates = [n for n in next_candidates if n[0] in matching_tracks]
|
next_candidates = [n for n in next_candidates if n[0] in matching_tracks]
|
||||||
if not next_candidates:
|
if not next_candidates:
|
||||||
raise NextNotFound()
|
raise NextNotFound()
|
||||||
return weighted_choice(next_candidates)
|
return random.choice([c[0] for c in next_candidates])
|
||||||
|
|
||||||
|
|
||||||
@registry.register(name="artist")
|
@registry.register(name="artist")
|
||||||
|
|
Ładowanie…
Reference in New Issue