diff options
| author | Zach DeCook <zachdecook@librem.one> | 2023-03-28 19:41:44 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2023-03-28 19:41:44 -0500 |
| commit | e4edde537c199287636f9db8782b421391eba2d1 (patch) | |
| tree | 9c0c6d1578b9b64851ab5596164fab88db3da3ff /aoyb.sh | |
| parent | 56754b9642b1da1a45af5fe68db4c9e8a213bb6a (diff) | |
| download | cgi-bin-e4edde537c199287636f9db8782b421391eba2d1.tar.gz | |
update some stuff
Diffstat (limited to 'aoyb.sh')
| -rwxr-xr-x | aoyb.sh | 8 |
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 |
