fix ipkg installer (fix by Moritz Venn: enigma2_fix_scanfile_mimetype_detection.patch)
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 15 Oct 2007 21:28:30 +0000 (21:28 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 15 Oct 2007 21:28:30 +0000 (21:28 +0000)
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:
-                       (self.mimetype, _) = guess_type(path)
+                       self.mimetype = getType(path)
                else:
                        self.mimetype = mimetype
                self.size = size