From e4edde537c199287636f9db8782b421391eba2d1 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 28 Mar 2023 19:41:44 -0500 Subject: update some stuff --- aoyb.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'aoyb.sh') 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 -- cgit 1.4.1