scripts for my gemini capsule
update some stuff
Zach DeCook 2023-03-28
parent 56754b9 · commit e4edde5
m---------Open-English-Bible0
-rwxr-xr-xaoyb.sh8
-rwxr-xr-xindex.gmi3
-rw-r--r--makeplan.sh4
4 files changed, 7 insertions, 8 deletions
diff --git a/Open-English-Bible b/Open-English-Bible
-Subproject c26b9f72a34110b5939a312cd357ce4820589ef
+Subproject 7a6ba3802d9d1281a4e330892ffdac226208518
diff --git a/aoyb.sh b/aoyb.sh
index ef1ab50..10d1c97 100755
--- a/aoyb.sh
+++ b/aoyb.sh
@@ -2,14 +2,12 @@
case "$PATH_INFO" in
"")
printf '20 text/gemini\r\n'
- curl https://audio.oneyearbibleonline.com/ | grep mp3 |sed 's/href="/\t/g' |cut -f2 |cut -d '"' -f1 | sed 's/^/=>/g'
+ wget -O - https://audio.oneyearbibleonline.com/ | grep mp3 |sed 's/href="/\t/g' |cut -f2 |cut -d '"' -f1 | sed 's/^/=>/g'
;;
*.mp3)
- printf "20 audio/mpeg\r\n"
- curl --output - "https://audio.oneyearbibleonline.com/$PATH_INFO"
+ printf '31 https://audio.oneyearbibleonline.com/%s\r\n' "$PATH_INFO"
;;
*)
- printf '20 text/gemini\r\n'
- printf '=> https://audio.oneyearbibleonline.com/%s' "$PATH_INFO"
+ printf '31 https://audio.oneyearbibleonline.com/%s\r\n' "$PATH_INFO"
;;
esac
diff --git a/index.gmi b/index.gmi
index 6f5cb2e..f300ff9 100755
--- a/index.gmi
+++ b/index.gmi
@@ -4,9 +4,10 @@ printf '20 text/gemini \r\n
#All Services
## Experimental bible reading scripts
+=> /cgi-bin/webp.py World English Bible reading script
+=> /cgi-bin/lsv.py Literal Standard Version bible reading script
=> /cgi-bin/net.sh Wrapper for New English Translation API.
=> /cgi-bin/oeb.py Open English Bible (WIP) rough-ish script for reading.
-=> /cgi-bin/webp.py World English Bible reading script
## misc
=> /cgi-bin/oebindex.sh Index for Open English Bible current completed books
diff --git a/makeplan.sh b/makeplan.sh
index e87b5bc..28f1932 100644
--- a/makeplan.sh
+++ b/makeplan.sh
@@ -12,7 +12,7 @@ if [ -e /srv/gemini.zachdecook.com/oyb/$day.mp3 ]; then
elif [ -e /srv/gemini.zachdecook.com/oyb/$day.ogg ]; then
echo "=> /oyb/$day.ogg Listen to today's reading by Zach!"
fi
-echo "=>/cgi-bin/aoyb.sh/tomdooley/$(date +%m%d).mp3 Listen to today's reading by Tom Dooley © MasterMedia Ministries/Tyndale."
+echo "=>https://audio.oneyearbibleonline.com/tomdooley/$(date +%m%d).mp3 Listen to today's reading by Tom Dooley © MasterMedia Ministries/Tyndale."
cd "$(dirname "$0")"
echo "# Old Testament Reading"
./webp.py "$ot" |grep -v 'text/gemini'
@@ -27,6 +27,6 @@ echo "# Psalm"
gmni "gemini://songs.zachdecook.com/searchVerse.gmi?$ps"
echo "# Proverb"
-./lsv.py "$pr" | grep -v 'xt/ge'
+./net.sh "$pr" | grep -v 'xt/ge'
gmni "gemini://songs.zachdecook.com/searchVerse.gmi?$pr"