diff options
author | Paweł Kraśnicki <paul.krasnicki@gmail.com> | 2019-01-18 18:05:31 +0100 |
---|---|---|
committer | Paweł Kraśnicki <paul.krasnicki@gmail.com> | 2019-01-18 18:06:01 +0100 |
commit | f9f73998a4792309f7b175d9e1d57dd5610fe132 (patch) | |
tree | 016ba20d47420786f1bc4b6a6c95998769f46272 /ranger | |
parent | 1667a60c6b356d5427c98ff37adea7f328e8ca5b (diff) | |
download | ranger-f9f73998a4792309f7b175d9e1d57dd5610fe132.tar.gz |
scope.sh: Add Calibre e-book previews (commented out)
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/data/scope.sh | 10 |
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*}" \ |