aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Scanner.py
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-08-10 14:02:57 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-08-10 14:02:57 +0000
commit1c6adfdbe104773d7a98377de6951da02ae1aac0 (patch)
tree3b7caa2ffa27b60e7f21535ae5c6753eaf85e3bc /lib/python/Components/Scanner.py
parenta57321af1e0bfebaadc5b747e51b9eb5bb7d3f3f (diff)
downloadenigma2-1c6adfdbe104773d7a98377de6951da02ae1aac0.tar.gz
enigma2-1c6adfdbe104773d7a98377de6951da02ae1aac0.zip
fix dvd hotplug: stop assuming dvd for every other medium. in case of multiple ISO files on medium, show choice list
Diffstat (limited to 'lib/python/Components/Scanner.py')
-rw-r--r--lib/python/Components/Scanner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/Components/Scanner.py b/lib/python/Components/Scanner.py
index 94c9cc2f..6bd0e3bd 100644
--- a/lib/python/Components/Scanner.py
+++ b/lib/python/Components/Scanner.py
@@ -26,6 +26,10 @@ def getType(file):
return "application/ogg"
elif ext == "dmpkg":
return "application/x-dream-package"
+ elif ext == "iso":
+ return "video/x-dvd-iso"
+ elif file[-12:].lower() == "video_ts.ifo":
+ return "video/x-dvd"
return type
class Scanner: