~earboxer/cgi-bin

e4edde537c199287636f9db8782b421391eba2d1 — Zach DeCook 8 months ago 56754b9
update some stuff
4 files changed, 8 insertions(+), 9 deletions(-)

M Open-English-Bible
M aoyb.sh
M index.gmi
M makeplan.sh
M Open-English-Bible => Open-English-Bible +1 -1
@@ 1,1 1,1 @@
Subproject commit c26b9f72a34110b5939a312cd357ce4820589ef7
Subproject commit 7a6ba3802d9d1281a4e330892ffdac2262085182

M aoyb.sh => aoyb.sh +3 -5
@@ 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

M index.gmi => index.gmi +2 -1
@@ 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

M makeplan.sh => makeplan.sh +2 -2
@@ 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"