summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-12-29 23:43:30 +0100
committertoonn <toonn@toonn.io>2019-12-29 23:43:30 +0100
commit9a05536d17bd142a9c15d2e752eb94c9c9c00a4d (patch)
treeac448c9b745a2732c087ef7bc8b804d853631dc5 /ranger
parent9a837720c28825603c88362a1ce7434a8ea9b4b2 (diff)
parent36ea4d672cc270927cf7a6f95f6e63a2baffceeb (diff)
downloadranger-9a05536d17bd142a9c15d2e752eb94c9c9c00a4d.tar.gz
Merge branch 'mime-extensions'
Diffstat (limited to 'ranger')
-rw-r--r--ranger/data/mime.types2
-rwxr-xr-xranger/data/scope.sh5
2 files changed, 4 insertions, 3 deletions
diff --git a/ranger/data/mime.types b/ranger/data/mime.types
index c20003d3..c0cfdcdb 100644
--- a/ranger/data/mime.types
+++ b/ranger/data/mime.types
@@ -23,7 +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-dsdiff          dsf dff
 audio/x-flac            flac
 
 image/vnd.djvu          djvu
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index caa9475f..d4899597 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -95,8 +95,9 @@ handle_extension() {
             python -m json.tool -- "${FILE_PATH}" && exit 5
             ;;
 
-        ## Direct Stream Digital/Transfer (DSDIFF)
-        dsf)
+        ## Direct Stream Digital/Transfer (DSDIFF) and wavpack aren't detected
+        ## by file(1).
+        dff|dsf|wv|wvc)
             mediainfo "${FILE_PATH}" && exit 5
             exiftool "${FILE_PATH}" && exit 5
             ;; # Continue with next handler on failure