Can anyone help me with a Regex problem? I'm trying to make a duplicate Musixmatch yaml that'll try to get lyrics for artists with swapped name order.
Example: I have a song titled "Kieru Daydream" by "Kawano Marina". But the Musixmatch URL is
https://www.musixmatch.com/lyrics/Marina-Kawano/Kieru-Daydream. Predictably, here's what happens with the updated Musixmatch yaml from a few pages back:
18/01/2022 09:27:38 [INFO] Musixmatch-Update tries to load the lyrics...
18/01/2022 09:27:38 [DEBUG] The constructed URL: http://www.musixmatch.com/lyrics/kawano-marina/kieru-daydream
18/01/2022 09:27:38 [INFO] No lyrics found.
18/01/2022 09:27:38 [DEBUG] no lyrics found from Musixmatch-Update
I'm trying stuff like this, but it seems like it isn't matching:
[regex, '(\w+) (\w+)', '\2 \1']
or
[regex, '([a-z]+) ([a-z]+)', '\2 \1']
18/01/2022 09:37:59 [INFO] Musixmatch-Name-Order tries to load the lyrics...
18/01/2022 09:37:59 [DEBUG] The constructed URL: http://www.musixmatch.com/lyrics/kawano-marina/kieru-daydream
18/01/2022 09:37:59 [INFO] No lyrics found.
18/01/2022 09:37:59 [DEBUG] no lyrics found from Musixmatch-Name-Order