|
|
@@ -20,7 +20,7 @@ |
|
|
|
|
|
|
|
EBOOK_ID="${EBOOK_ID}" |
|
|
|
DIR="${XDG_CACHE_HOME:-$HOME/.cache}/nnn/gutenbooks/$EBOOK_ID" |
|
|
|
BROWSE_LINK="http://www.gutenberg.org/ebooks/search/?sort_order=downloads" |
|
|
|
BROWSE_LINK="https://www.gutenberg.org/ebooks/search/?sort_order=downloads" |
|
|
|
BROWSER="${BROWSER:-w3m}" |
|
|
|
READER="${READER}" |
|
|
|
|
|
|
@@ -33,7 +33,7 @@ if [ -n "$EBOOK_ID" ]; then |
|
|
|
curl -L -O "https://www.gutenberg.org/files/$EBOOK_ID/$EBOOK_ID-h.zip" |
|
|
|
unzip "$EBOOK_ID"-h.zip |
|
|
|
else |
|
|
|
curl -L -o "$EBOOK_ID".epub "http://www.gutenberg.org/ebooks/$EBOOK_ID.epub.noimages" |
|
|
|
curl -L -o "$EBOOK_ID".epub "https://www.gutenberg.org/ebooks/$EBOOK_ID.epub.noimages" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|