Changed the separator symbol.

This commit is contained in:
Nicolás Ortega Froysa 2020-04-06 14:45:13 +02:00
parent d6ad9cb833
commit 0e40ca3e5c

View File

@ -41,12 +41,12 @@ new_link() {
grep "<p>.*watch" | tr -d "\n" | tr -s " ") grep "<p>.*watch" | tr -d "\n" | tr -s " ")
results=${results//\<p\>\<a href\=\"/\"https:\/\/invidio.us} results=${results//\<p\>\<a href\=\"/\"https:\/\/invidio.us}
results=${results//\"\>/\" \"} results=${results//\"\>/\" \"}
results=${results//\<\/a\>\<\/p\>/\" æ } results=${results//\<\/a\>\<\/p\>/\" þ }
results=${results::-2} # remove that last separator results=${results::-2} # remove that last separator
# NOTE: I chose æ because never in a million years will that # NOTE: I chose þ because never in a million years will that
# character be in the title of a lofi video stream. # character be in the title of a lofi video stream.
IFS="æ" read -r -a streams <<< $results IFS="þ" read -r -a streams <<< $results
echo "Streams:" echo "Streams:"
local id=1 local id=1