ranger: Use exiftool for pictures, mediainfo for audio/video
parent
6bece4a788
commit
ee559bbccb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue