os.path.splitext includes the . in the extension!

This commit is contained in:
Jonathan Corwin 2011-04-30 17:11:28 +01:00
parent aef087d834
commit f472807251

View File

@ -293,7 +293,7 @@ class PresentationMediaItem(MediaManagerItem):
"supports" the extension. If none found, then look for a controller
which "also supports" it instead.
"""
filetype = os.path.splitext(filename)[1]
filetype = os.path.splitext(filename)[1][1:]
if not filetype:
return None
for controller in self.controllers: