Switch domain from 'wikia' to 'fandom'

This commit is contained in:
Jaidyn Levesque 2019-12-09 11:48:22 -06:00
parent a13cd7dde6
commit 747a1ba236
3 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
WYRICS Git some lyrics WYRICS Git some lyrics
=============================================================================== ===============================================================================
Fetch lyrics for a song from lyrics.wikia.com with this script. Fetch lyrics for a song from lyrics.fandom.com with this script.
You can fetch them by search queries, or by their URL. You can fetch them by search queries, or by their URL.
@ -100,5 +100,5 @@ want to skip to the next song.
BORING STUFF BORING STUFF
---------------------------------------- ----------------------------------------
License is CC-0 (though, "gendl" is GPLv3) License is CC-0 (though, "gendl" is GPLv3)
Author is Jenga Phoenix <jadedctrl@teknik.io> Author is Jaidyn Ann <jadedctrl@teknik.io>
Sauce is at https://git.eunichx.us/wyrics.git Sauce is at https://git.eunichx.us/wyrics.git

2
wydir
View File

@ -3,7 +3,7 @@
# name: wydir # name: wydir
# desc: run `wyrics` over every song in # desc: run `wyrics` over every song in
# a directory of given file-ext # a directory of given file-ext
# main: Jenga Phoenix # main: Jaidyn Ann
# <jadedctrl@teknik.io> # <jadedctrl@teknik.io>
# lisc: CC 0 # lisc: CC 0
######################################## ########################################

6
wyrics
View File

@ -2,8 +2,8 @@
######################################## ########################################
# name: wyrics # name: wyrics
# desc: fetch lyrics by URL or query # desc: fetch lyrics by URL or query
# from lyrics.wikia.com # from lyrics.fandom.com
# main: Jenga Phoenix # main: Jaidyn Ann
# <jadedctrl@teknik.io> # <jadedctrl@teknik.io>
# lisc: CC 0 # lisc: CC 0
######################################## ########################################
@ -71,7 +71,7 @@ function search {
local query="$1" local query="$1"
local query="$(echo "$query" | sed 's/ /+/g')" local query="$(echo "$query" | sed 's/ /+/g')"
gendl "https://lyrics.wikia.com/wiki/Special:Search?query=${query}" \ gendl "https://lyrics.fandom.com/wiki/Special:Search?query=${query}" \
| sed '1,/Results/d' \ | sed '1,/Results/d' \
| grep "result-link" \ | grep "result-link" \
| search_parse | search_parse