ranger: Use exiftool for pictures, mediainfo for audio/video

master
Pierre Neidhardt 2015-02-26 10:53:38 +01:00
parent 6bece4a788
commit ee559bbccb
1 changed files with 3 additions and 2 deletions

View File

@ -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