From b1e42a36316b3f6d92c73ad22f94fa6741593e98 Mon Sep 17 00:00:00 2001 From: pirate486743186 Date: Thu, 11 Nov 2021 10:31:36 +0100 Subject: thumbnail preview for audio --- ranger/data/scope.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 9b1035a8..4126f312 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -161,6 +161,12 @@ handle_image() { # ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6 # exit 1;; + ## Audio + # audio/*) + # # Get embedded thumbnail + # ffmpeg -i "${FILE_PATH}" -map 0:v -map -0:V -c copy "${IMAGE_CACHE_PATH}" && exit 6 + # exit 1;; + ## PDF # application/pdf) # pdftoppm -f 1 -l 1 \ -- cgit 1.4.1-2-gfad0 From 922aba71d9bbb124c362c29b9abb34d34bd3ec2b Mon Sep 17 00:00:00 2001 From: toonn Date: Thu, 11 Nov 2021 13:05:49 +0100 Subject: scope: Remove exit to fallback in case of no thumbnail --- ranger/data/scope.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 4126f312..044b3f53 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -164,8 +164,8 @@ handle_image() { ## Audio # audio/*) # # Get embedded thumbnail - # ffmpeg -i "${FILE_PATH}" -map 0:v -map -0:V -c copy "${IMAGE_CACHE_PATH}" && exit 6 - # exit 1;; + # ffmpeg -i "${FILE_PATH}" -map 0:v -map -0:V -c copy \ + # "${IMAGE_CACHE_PATH}" && exit 6;; ## PDF # application/pdf) -- cgit 1.4.1-2-gfad0