Using new Invidious instance.

This commit is contained in:
Nicolás Ortega Froysa 2020-09-02 16:55:11 +02:00
parent 0e40ca3e5c
commit 6e780d3a22

View File

@ -37,9 +37,9 @@ Commands:
}
new_link() {
local results=$(curl -s "https://invidio.us/search?q=lofi+radio" |
local results=$(curl -s "https://invidious.tube/search?q=lofi+radio" |
grep "<p>.*watch" | tr -d "\n" | tr -s " ")
results=${results//\<p\>\<a href\=\"/\"https:\/\/invidio.us}
results=${results//\<p\>\<a href\=\"/\"https:\/\/invidious.tube}
results=${results//\"\>/\" \"}
results=${results//\<\/a\>\<\/p\>/\" þ }
results=${results::-2} # remove that last separator