aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-06-15 20:03:15 +0200
committerhut <hut@lavabit.com>2009-06-15 20:03:15 +0200
commit131b33bfd71b4f3cc6c73b56ec8e536da472eb0a (patch)
tree7c38b4c0765697105d1db98c81f976a7e669cefc /data
parent136e534c0a4142546ae5c34efadd9dccdada9a82 (diff)
downloadranger-131b33bfd71b4f3cc6c73b56ec8e536da472eb0a.tar.gz
handle video and audio differently in data/types
Diffstat (limited to 'data')
-rw-r--r--data/types.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/data/types.rb b/data/types.rb
index 02c9cc1e..8719f07c 100644
--- a/data/types.rb
+++ b/data/types.rb
@@ -14,9 +14,11 @@ class Directory::Entry
use.rake
end
- ## at first, look at the mime type
case @mimetype
- when /^video|audio/
+ when /^video/
+ use.mplayer_detached
+
+ when /^audio/
use.mplayer
when "application/pdf"