forked from openlp/openlp
os.path.splitext includes the . in the extension!
This commit is contained in:
parent
aef087d834
commit
f472807251
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user