summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorPaweł Kraśnicki <paul.krasnicki@gmail.com>2019-01-18 18:05:31 +0100
committerPaweł Kraśnicki <paul.krasnicki@gmail.com>2019-01-18 18:06:01 +0100
commitf9f73998a4792309f7b175d9e1d57dd5610fe132 (patch)
tree016ba20d47420786f1bc4b6a6c95998769f46272 /ranger
parent1667a60c6b356d5427c98ff37adea7f328e8ca5b (diff)
downloadranger-f9f73998a4792309f7b175d9e1d57dd5610fe132.tar.gz
scope.sh: Add Calibre e-book previews (commented out)
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/data/scope.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index 8bef068a..13df2603 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -141,10 +141,12 @@ handle_image() {
         #              -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \
         #         && exit 6 || exit 1;;
 
-        # ePub
-        # Needs <https://github.com/marianosimone/epub-thumbnailer>.
-        # Alternative with more supported formats but more dependencies:
-        # <https://inigo.katxi.org/devel/ebook-thumbnailer>.
+        # ePub, MOBI, FB2 (using Calibre)
+        # application/epub+zip|application/x-mobipocket-ebook|application/x-fictionbook+xml)
+        #     ebook-meta --get-cover="${IMAGE_CACHE_PATH}" -- "${FILE_PATH}" > /dev/null \
+        #         && exit 6 || exit 1;;
+
+        # ePub (using <https://github.com/marianosimone/epub-thumbnailer>)
         # application/epub+zip)
         #     epub-thumbnailer \
         #         "${FILE_PATH}" "${IMAGE_CACHE_PATH}" "${DEFAULT_SIZE%x*}" \