aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mediainf
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-28 00:00:52 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-28 00:02:33 +0530
commit94c3af873cf2aa46e2cb018412b8ce1e1609d30c (patch)
tree896eb141443e9f1b098ac30d9203b1050f8df7d1 /plugins/mediainf
parentf781fbe78c044f0187c9b545f048045961904771 (diff)
downloadnnn-94c3af873cf2aa46e2cb018412b8ce1e1609d30c.tar.gz
Implement mediainfo as a plugin
Diffstat (limited to 'plugins/mediainf')
-rwxr-xr-xplugins/mediainf13
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