From ee559bbccbf2ebe9ab3f3e7a77084cc0a5a64f8a Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 26 Feb 2015 10:53:38 +0100 Subject: [PATCH] ranger: Use exiftool for pictures, mediainfo for audio/video --- .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 c10ebfdc..c3dee9ad 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -105,9 +105,10 @@ case "$mimetype" in # 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; } + exiftool "$path" && exit 5 + exit 1;; esac exit 1