scripts for my gemini capsule
horner: Fix mispelled Philippians
Zach DeCook 2022-12-10
parent 252abe7 · commit 0d786c1
-rwxr-xr-xesv.sh18
-rw-r--r--horner.sh2
2 files changed, 1 insertions, 19 deletions
diff --git a/esv.sh b/esv.sh
deleted file mode 100755
index 90cfa27..0000000
--- a/esv.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-# esv api v2 is deprecated.
-# I'm not planning on jumping thru Crossway's hoops again for this.
-if [ "$QUERY_STRING" = "" ]
-then
- printf "10 Enter a scripture reference\r\n"
- return
-fi
-
-printf "20 text/gemini\r\n"
-
-qs="$(echo "$QUERY_STRING" |sed 's/ /\+/g')"
-printf "=> http://www.esvapi.org This content pulled from esvapi.org.\n#"
-req="$(printf 'http://www.esvapi.org/v2/rest/passageQuery?key=TEST&passage=%s&include-headings=false&output-format=plain-text&include-verse-numbers=false&include-footnotes=false&line-length=0&include-first-verse-numbers=false&include-passage-horizontal-lines=false&include-heading-horizontal-lines=false&include-subheadings=false' "$qs")"
-#echo $req
-curl "$req"
-# Include an ending newline.
-echo ''
diff --git a/horner.sh b/horner.sh
index 262b06a..8f6960d 100644
--- a/horner.sh
+++ b/horner.sh
@@ -17,7 +17,7 @@ gmni "gemini://songs.zachdecook.com/searchVerse.gmi?$ms"
# 3. Major Pauline
echo "# 3. Major Epistle"
-pl="$(python chapterN.py $(($day % 78 +1)) Romans "1 Corinthians" "2 Corinthians" Galatians Ephesians Philipians Colossians Hebrews)"
+pl="$(python chapterN.py $(($day % 78 +1)) Romans "1 Corinthians" "2 Corinthians" Galatians Ephesians Philippians Colossians Hebrews)"
./webp.py "$pl" |grep -v 'xt/gemini'
gmni "gemini://songs.zachdecook.com/searchVerse.gmi?$pl"