Fix bug 773036

This commit is contained in:
Jonathan Corwin 2011-04-29 09:58:10 +01:00
parent ff4a9802e8
commit ebf5777a02
1 changed files with 2 additions and 2 deletions

View File

@ -285,7 +285,7 @@ class PresentationMediaItem(MediaManagerItem):
"supports" the extension. If none found, then look for a controller
which "also supports" it instead.
"""
filetype = filename.split(u'.')[1]
filetype = filename.split(u'.')[-1]
if not filetype:
return None
for controller in self.controllers:
@ -296,4 +296,4 @@ class PresentationMediaItem(MediaManagerItem):
if self.controllers[controller].enabled():
if filetype in self.controllers[controller].alsosupports:
return controller
return None
return None