add autoplay detection for .ts movies
[enigma2.git] / lib / python / Components / Scanner.py
index 6acdecc..69237bc 100644 (file)
@@ -24,6 +24,14 @@ def getType(file):
                        return "application/x-debian-package"
                elif ext == "ogg":
                        return "application/ogg"
+               elif ext == "dmpkg":
+                       return "application/x-dream-package"
+               elif ext == "ts":
+                       return "video/MP2T"
+               elif ext == "iso":
+                       return "video/x-dvd-iso"
+               elif file[-12:].lower() == "video_ts.ifo":
+                       return "video/x-dvd"
        return type
 
 class Scanner: