git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7736d28
)
fix ipkg installer (fix by Moritz Venn: enigma2_fix_scanfile_mimetype_detection.patch)
author
Felix Domke
<tmbinc@elitedvb.net>
Mon, 15 Oct 2007 21:28:30 +0000
(21:28 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Mon, 15 Oct 2007 21:28:30 +0000
(21:28 +0000)
lib/python/Components/Scanner.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Scanner.py
b/lib/python/Components/Scanner.py
index 860918c034d75add219167a8ca64a971476f639c..6acdecc89b41ce25d3cda1576c2c456ac3faa036 100644
(file)
--- a/
lib/python/Components/Scanner.py
+++ b/
lib/python/Components/Scanner.py
@@
-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_t
ype(path)
+
self.mimetype = getT
ype(path)
else:
self.mimetype = mimetype
self.size = size
else:
self.mimetype = mimetype
self.size = size