Need help with webget

I’m trying to get Lyrics in my widget from LrcLib but I am stuck!

I have created a global (url) with:

https://lrclib.net/api/get?artist_name=$tc(reg, mi(artist), " “, “+”)$&track_name=$tc(reg, mi(title), " “,”+”)$

The link works, it shows the right page…
Now i’m trying to get the data with webget:

$wg(gv(url),json, .plainLyrics)$

it stays empty…

Am I doing something wrong, or am i missing something?

Api docs are here; LRCLIB

All ideas are welcome…

This seems to have worked fine for me. Initially received an error in the global variable. Had to make sure that notification access is enabled for KWGT.

Global Variable

Output

Started a fresh widget and it works!
Thanks for letting me know it worked for you, at least i knew then i was in the right direction…
Next step is to finish it of with synced lyrics…

Hi there,

I think the issue is in the global variable.

I tried this and it worked perfectly.

https://lrclib.net/api/get?artist_name=$mi(artist)$&track_name=$mi(title)$

There’s no Regular Expression needed in the URL global variable.

I hope this would help.
:smiling_face::+1:

Thanks, got it working!

This topic was automatically closed 25 days after the last reply. New replies are no longer allowed.