add space
[enigma2.git] / lib / python / Components / Scanner.py
index 860918c034d75add219167a8ca64a971476f639c..94c9cc2fa3db55b604470b7eb04a7aeec0034101 100644 (file)
@@ -24,6 +24,8 @@ def getType(file):
                        return "application/x-debian-package"
                elif ext == "ogg":
                        return "application/ogg"
+               elif ext == "dmpkg":
+                       return "application/x-dream-package"
        return type
 
 class Scanner:
@@ -72,7 +74,7 @@ class ScanFile:
        def __init__(self, path, mimetype = None, size = None, autodetect = True):
                self.path = path
                if mimetype is None and autodetect:
-                       (self.mimetype, _) = guess_type(path)
+                       self.mimetype = getType(path)
                else:
                        self.mimetype = mimetype
                self.size = size