nnn/plugins/mediainf

14 lines
256 B
Plaintext
Raw Normal View History

2019-08-27 18:30:52 +00:00
#!/usr/bin/env sh
# Description: Show media information of a file in pager
#
2020-05-06 05:29:57 +00:00
# Dependencies: mediainfo
2019-08-27 18:30:52 +00:00
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana
2020-11-22 14:39:14 +00:00
if [ -n "$1" ] && [ -f "$1" ]; then
2019-08-27 18:30:52 +00:00
mediainfo "$1" | $PAGER
# exiftool "$1" | $PAGER
fi