diff options
author | 2019-08-28 00:00:52 +0530 | |
---|---|---|
committer | 2019-08-28 00:02:33 +0530 | |
commit | 94c3af873cf2aa46e2cb018412b8ce1e1609d30c (patch) | |
tree | 896eb141443e9f1b098ac30d9203b1050f8df7d1 /plugins/mediainf | |
parent | f781fbe78c044f0187c9b545f048045961904771 (diff) | |
download | nnn-94c3af873cf2aa46e2cb018412b8ce1e1609d30c.tar.gz |
Implement mediainfo as a plugin
Diffstat (limited to 'plugins/mediainf')
-rwxr-xr-x | plugins/mediainf | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/mediainf b/plugins/mediainf new file mode 100755 index 0000000..f76b56b --- /dev/null +++ b/plugins/mediainf @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +# Description: Show media information of a file in pager +# +# Requires: mediainfo +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +if ! [ -z "$1" ] && [ -f "$1" ]; then + mediainfo "$1" | $PAGER + # exiftool "$1" | $PAGER +fi |