fix ipkg installer (fix by Moritz Venn: enigma2_fix_scanfile_mimetype_detection.patch)
[enigma2.git] / lib / python / Components / Scanner.py
index 860918c034d75add219167a8ca64a971476f639c..6acdecc89b41ce25d3cda1576c2c456ac3faa036 100644 (file)
@@ -72,7 +72,7 @@ class ScanFile:
        def __init__(self, path, mimetype = None, size = None, autodetect = True):
                self.path = path
                if mimetype is None and autodetect:
        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
                else:
                        self.mimetype = mimetype
                self.size = size