Fix bug 773036

This commit is contained in:
Jonathan Corwin 2011-04-29 09:58:10 +01:00
parent ff4a9802e8
commit ebf5777a02

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: