2019-01-20 23:41:10 -06:00
|
|
|
===============================================================================
|
|
|
|
WYRICS Git some lyrics
|
|
|
|
===============================================================================
|
|
|
|
|
2020-12-25 22:29:09 -06:00
|
|
|
Fetch lyrics for a song from lyrics.ovh with this script.
|
2019-12-09 12:29:17 -06:00
|
|
|
|
2020-12-25 22:29:09 -06:00
|
|
|
This used to use songlyrics.com-- and before that, lyrics.wikia.com.
|
|
|
|
songlyrics.com has more flexible searching (you could make typos), but it
|
|
|
|
is a pretty slow site.
|
2019-01-20 23:41:10 -06:00
|
|
|
|
2020-12-25 22:29:09 -06:00
|
|
|
lyrics.ovh is a good deal faster, but much more picky.
|
2019-01-20 23:41:10 -06:00
|
|
|
|
|
|
|
----------------------------------------
|
|
|
|
PRE-REQUISITES
|
|
|
|
----------------------------------------
|
|
|
|
You'll need:
|
2020-12-25 22:29:09 -06:00
|
|
|
* curl
|
|
|
|
* a shell
|
2019-01-20 23:41:10 -06:00
|
|
|
|
|
|
|
----------------------------------------
|
|
|
|
USAGE
|
|
|
|
----------------------------------------
|
2019-01-21 13:09:15 -06:00
|
|
|
WYRICS
|
|
|
|
--------------------
|
2019-01-20 23:41:10 -06:00
|
|
|
Just run "wyrics" like so:
|
|
|
|
|
2020-12-25 22:29:09 -06:00
|
|
|
wyrics $ARTIST $SONG
|
2019-01-20 23:41:10 -06:00
|
|
|
|
|
|
|
If you want to save lyrics to a file, you'll need to redirect the
|
2020-12-25 22:29:09 -06:00
|
|
|
output--
|
|
|
|
$ wyrics "dream theater" "octavarium" > lyrics.txt
|
2019-01-21 13:09:15 -06:00
|
|
|
|
|
|
|
|
|
|
|
WYDIR
|
|
|
|
--------------------
|
|
|
|
Runs "wyrics" over every song in a directory of a given file-extension.
|
|
|
|
The lyrics are output to "$song.txt"
|
|
|
|
|
|
|
|
Just run "wydir" like so:
|
|
|
|
|
2020-12-25 22:29:09 -06:00
|
|
|
wydir $ARTIST $FILE_EXTENSION
|
2019-01-21 13:09:15 -06:00
|
|
|
|
2020-12-25 22:29:09 -06:00
|
|
|
Convenient if you wanna get the lyrics of an album in one go.
|
2019-01-20 23:41:10 -06:00
|
|
|
|
|
|
|
|
|
|
|
----------------------------------------
|
|
|
|
BORING STUFF
|
|
|
|
----------------------------------------
|
2020-12-25 22:29:09 -06:00
|
|
|
License is CC-0
|
2019-12-09 11:48:22 -06:00
|
|
|
Author is Jaidyn Ann <jadedctrl@teknik.io>
|
2020-12-25 22:29:09 -06:00
|
|
|
Sauce is at https://git.feneas.org/detruota/wyrics.git
|