From 5166c7ce5b37eb4e091a56472b6e397b88d48d7b Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 27 Apr 2017 14:31:52 +0530 Subject: [PATCH] ranger/scope.sh: Default to exiftool for pics and mediainfo for videos --- .config/ranger/scope.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index f9d44a81..9b2dd44b 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -128,12 +128,13 @@ case "$mimetype" in exit 2;; # Ascii-previews of images: image/*) + exiftool "$path" && exit 5 img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;; # Display information about media files: video/* | audio/*) - exiftool "$path" && exit 5 # Use sed to remove spaces so the output fits into the narrow window - try mediainfo "$path" && { dump | trim | sed 's/ \+:/: /;'; exit 5; } || exit 1;; + try mediainfo "$path" && { dump | trim | sed 's/ \+:/: /;'; exit 5; } || exit 1 + exiftool "$path" && exit 5;; esac exit 1