From dad94fb935bb9f1ee4f03357c45ecab4191389f1 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 7 Oct 2023 16:36:06 +0000 Subject: Site-parsing scripts: Update to use wget --- gcc.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gcc.sh') diff --git a/gcc.sh b/gcc.sh index 6d55641..024745a 100755 --- a/gcc.sh +++ b/gcc.sh @@ -3,7 +3,7 @@ if [ "$PATH_INFO" = "" ] then printf "20 text/gemini\r\n" - curl -s https://gccsatx.com/hymns/ | grep ' gcc.sh/@g' exit 0 fi @@ -11,18 +11,18 @@ hasmp3=$(echo "$QUERY_STRING"|grep 'mp3') if [ ! "$hasmp3" = "" ] then printf "20 audio/mpeg\r\n" - mp3=$(curl -s https://gccsatx.com/hymns$PATH_INFO/ | grep \.mp3 | sed 's/ /\n/g' | grep \.mp3 | grep href | cut -d'"' -f2) - curl --output - $mp3 + mp3=$(wget -q -O - https://gccsatx.com/hymns$PATH_INFO/ | grep \.mp3 | sed 's/ /\n/g' | grep \.mp3 | grep href | cut -d'"' -f2) + wget -O - $mp3 exit 0 fi printf "20 text/gemini\r\n" printf "=>/cgi-bin/gcc.sh$PATH_INFO?.mp3 Listen to this!\n" -curl -s https://gccsatx.com/hymns$PATH_INFO/ \ +wget -q -O - https://gccsatx.com/hymns$PATH_INFO/ \ +| grep -o '\(\|\|\)[^<>]*\(\|
\|\)[^<>]*\(
@@g' \ | sed 's@
@##@g' | sed 's@@@g'\ -| sed 's@
@@g' \ -| sed 's@@@g' | sed 's@