feat(users/Profpatsch/lyric/ext): add lrc upload & ms offset

This adds support for uploading the lyrics part of an .lrc file to
lrclib, see https://lrclib.net/docs

I pretty much only used ChatGPT to translate the rust “proof of work”
challenge to nodejs and it worked first try lol.

Before uploading the lyrics, I construct a webview with a preview of
what is going to be uploaded, and then only upload when that is
accepted. Pretty sweet.

Also adds two commands for increasing/decreasing the current timestamp
by 100ms and starting playback from 2 seconds before that, very handy
for fine-tuning lines.

Change-Id: Ia6adfe26d0c21c62554c8f8c55e97e2caec95d1e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12561
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
This commit is contained in:
Profpatsch 2024-10-01 19:10:52 +02:00
parent ad711b15a0
commit cf68a34b0d
3 changed files with 405 additions and 6 deletions

View file

@ -34,6 +34,21 @@
"command": "extension.quantizeToEigthNote",
"title": "Quantize timestamps to nearest eighth note",
"category": "LRC"
},
{
"command": "extension.fineTuneTimestampDown100MsAndPlay",
"title": "Remove 100 ms from current timestamp and play from shortly before the change",
"category": "LRC"
},
{
"command": "extension.fineTuneTimestampUp100MsAndPlay",
"title": "Add 100 ms to current timestamp and play from shortly before the change",
"category": "LRC"
},
{
"command": "extension.uploadLyricsToLrclibDotNet",
"title": "Upload Lyrics to lrclib.net",
"category": "LRC"
}
],
"languages": [