about summary refs log tree commit diff
path: root/aoyb.sh
diff options
context:
space:
mode:
Diffstat (limited to 'aoyb.sh')
-rwxr-xr-xaoyb.sh8
1 files changed, 3 insertions, 5 deletions
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