Open ronajon opened 1 year ago
This sounds annoying! It would be helpful to experiment with different ways of resolving the ambiguity. For example, does simply dropping the last two-letter word always work, or does that ever introduce ambiguity with a different artist?
Here's where to start when tweaking the matching heuristic: https://github.com/beetbox/beets/blob/9527a07767629c1ceb99c2cd681b78172a7272a0/beetsplug/lyrics.py#L361
if i regex replace [<2 letter country code>] it seems to work line 359
old
hit_artist = hit["result"]["primary_artist"]["name"]
new
hit_artist = re.sub(r'.[\(\[]..[\)\]]','',hit["result"]["primary_artist"]["name"])
Nice, that seems like a good step! An eventual PR should try both (the original and truncated name, if any) to make sure we don't miss artists that happen to look like this.
Problem
importing Genius lyrics for specific Artists does not work. The reason is that the artists are not know in Genius with just their bandname (Psychonaut or Brutus) but due to multiple bands having the same name, know as <>-<> so psychonaut-be (https://genius.com/artists/Psychonaut-be) and brutus-be https://genius.com/artists/brutus-be
Running this command in verbose (
-vv
) mode:Led to this problem:
Here's a link to the music files that trigger the bug (if relevant):
Setup
My configuration (output of
beet config
) is: