forked from openlp/openlp
This commit is contained in:
parent
d5f8201c8b
commit
5ac1d0809e
@ -77,10 +77,9 @@ class PhononPlayer(MediaPlayer):
|
|||||||
self._addToList(self.audio_extensions_list, mimetype)
|
self._addToList(self.audio_extensions_list, mimetype)
|
||||||
elif mimetype.startswith(u'video/'):
|
elif mimetype.startswith(u'video/'):
|
||||||
self._addToList(self.video_extensions_list, mimetype)
|
self._addToList(self.video_extensions_list, mimetype)
|
||||||
# Work arround for http://bugs.python.org/issue9291
|
# Work around for http://bugs.python.org/issue9291
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
log.exception(u'UnicodeDecodeError when trying to read mime types.'
|
log.exception(u'UnicodeDecodeError when trying to read mime types. Setting extensions to all files')
|
||||||
' Setting extensions to all files')
|
|
||||||
self.audio_extensions_list = [u'*']
|
self.audio_extensions_list = [u'*']
|
||||||
self.video_extensions_list = [u'*']
|
self.video_extensions_list = [u'*']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user