scripts for my gemini capsule
Diffstat (limited to 'gcc.sh')
-rwxr-xr-xgcc.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc.sh b/gcc.sh
index 874a86e..6d55641 100755
--- a/gcc.sh
+++ b/gcc.sh
@@ -3,7 +3,7 @@
if [ "$PATH_INFO" = "" ]
then
printf "20 text/gemini\r\n"
- curl https://gccsatx.com/hymns/ | grep ' <a href="https://gccsatx.com/hymns/' | cut -d/ -f5 | sed 's@^@=>gcc.sh/@g'
+ curl -s https://gccsatx.com/hymns/ | grep ' <a href="https://gccsatx.com/hymns/' | cut -d/ -f5 | sed 's@^@=>gcc.sh/@g'
exit 0
fi
@@ -11,14 +11,14 @@ hasmp3=$(echo "$QUERY_STRING"|grep 'mp3')
if [ ! "$hasmp3" = "" ]
then
printf "20 audio/mpeg\r\n"
- mp3=$(curl https://gccsatx.com/hymns$PATH_INFO/ | grep \.mp3 | sed 's/ /\n/g' | grep \.mp3 | grep href | cut -d'"' -f2)
+ 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
exit 0
fi
printf "20 text/gemini\r\n"
printf "=>/cgi-bin/gcc.sh$PATH_INFO?.mp3 Listen to this!\n"
-curl https://gccsatx.com/hymns$PATH_INFO/ \
+curl -s https://gccsatx.com/hymns$PATH_INFO/ \
| sed 's@ <title>@#@g' | sed 's@ | Hymn Lyrics and Piano Music</title>@@g'\
| sed 's@<p><strong>@##@g' | sed 's@</strong>@@g'\
| sed 's@<p>@@g' \