diff options
-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 } |