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 860918c..6acdecc 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