about summary refs log tree commit diff
path: root/gcc.sh
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-03-23 18:03:06 -0400
committerZach DeCook <zachdecook@librem.one>2021-03-23 18:05:27 -0400
commit693f1ca7f96e9ca258a9e1a38cf99904d6e8811f (patch)
tree0d1ebc891e3edcdb19fbb8a7b45f86dcfc20323d /gcc.sh
parent89b9f068e8b8b555ed417c915f4d66d69352da96 (diff)
downloadcgi-bin-693f1ca7f96e9ca258a9e1a38cf99904d6e8811f.tar.gz
gcc page: Show title and author
Diffstat (limited to 'gcc.sh')
-rwxr-xr-xgcc.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc.sh b/gcc.sh
index 47e487a..8bca17d 100755
--- a/gcc.sh
+++ b/gcc.sh
@@ -19,9 +19,12 @@ 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/ \
+| 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' \
 | sed 's@<br />@@g' | sed 's@</p>@@' | grep -v '<' \
 | grep -v '!important' | grep -v '}\|{\|wp-smiley' \
 | sed 's/&#8217;/’/g' | sed 's/&#8221;/”/g' | sed 's/&#8220;/“/g'\
+| grep -v 'this website' \
 | sed -r '/^\s*$/d'
 exit 0