diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-12-27 22:37:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-27 22:37:03 +0100 |
commit | cec6a8a95f403edab2929f271fa94b8752162b4d (patch) | |
tree | 1610e9dc34648cc1e1facd1c0d1fff6686059fd4 | |
parent | f87f7d26f31cf2690ff2ed4129102d7b2cd86bba (diff) | |
parent | 617b36ac697a099a59a5e5f29fbbefb29d93e407 (diff) | |
download | ranger-cec6a8a95f403edab2929f271fa94b8752162b4d.tar.gz |
Merge pull request #1789 from toonn/mime-dsf
Add Direct Stream Digital/Transfer to mime types
-rw-r--r-- | ranger/data/mime.types | 1 | ||||
-rwxr-xr-x | ranger/data/scope.sh | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ranger/data/mime.types b/ranger/data/mime.types index bcf28acf..c20003d3 100644 --- a/ranger/data/mime.types +++ b/ranger/data/mime.types @@ -23,6 +23,7 @@ audio/ogg oga ogg spx opus audio/wavpack wv wvc audio/webm weba audio/x-ape ape +audio/x-dsdiff dsf audio/x-flac flac image/vnd.djvu djvu diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 670d73d1..caa9475f 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -87,12 +87,19 @@ handle_extension() { w3m -dump "${FILE_PATH}" && exit 5 lynx -dump -- "${FILE_PATH}" && exit 5 elinks -dump "${FILE_PATH}" && exit 5 - ;; # Continue with next handler on failure + ;; + ## JSON json) jq --color-output . "${FILE_PATH}" && exit 5 python -m json.tool -- "${FILE_PATH}" && exit 5 ;; + + ## Direct Stream Digital/Transfer (DSDIFF) + dsf) + mediainfo "${FILE_PATH}" && exit 5 + exiftool "${FILE_PATH}" && exit 5 + ;; # Continue with next handler on failure esac } |