raitonoberu / sptlrx

Synchronized lyrics in your terminal
MIT License
354 stars 14 forks source link

Add export subcommand #22

Closed eNV25 closed 1 year ago

eNV25 commented 1 year ago

Part of #14

eNV25 commented 1 year ago

@raitonoberu Thoughts?

raitonoberu commented 1 year ago

Sorry for such an absurdly long delay. To be honest, I think this feature is better suited for a new project than for sptlrx. Also, one of my recent commits to lyricsapi allows you to format .LRC on the server side, so you can export the lyrics of the currently playing song to stdout just by running:

curl -G "https://lyricsapi.vercel.app/api/lyrics?lrc=1" --data-urlencode "name=$(playerctl metadata --format '{{artist}} {{title}}')"

(make sure you have playerctl installed)

eNV25 commented 1 year ago

Nice!