Skip to content

Commit

Permalink
Merge pull request #112 from metabrainz/use-deployed-tag-similarity
Browse files Browse the repository at this point in the history
Move LB radio tag similarity call to point to labs API
  • Loading branch information
mayhem committed Dec 4, 2023
2 parents a0ca6f9 + fe72462 commit 6bd3263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion troi/patches/lb_radio_classes/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def fetch_similar_tags(self, tag):
Fetch similar tags from LB
"""

r = requests.post("https://datasets.listenbrainz.org/tag-similarity/json", json=[{"tag": tag}])
r = requests.post("https://labs.api.listenbrainz.org/tag-similarity/json", json=[{"tag": tag}])
if r.status_code != 200:
raise RuntimeError(f"Cannot fetch similar tags. {r.text}")

Expand Down

0 comments on commit 6bd3263

Please sign in to comment.