forked from openlp/openlp
Added some extensions.
This commit is contained in:
parent
98d8b1f590
commit
9f9720e368
@ -45,8 +45,16 @@ class MediaPlugin(Plugin):
|
||||
self.icon = build_icon(self.icon_path)
|
||||
# passed with drag and drop messages
|
||||
self.dnd_id = u'Media'
|
||||
self.additional_extensions = {}
|
||||
# 'video/msvideo': ['.avi']} This is an example line.
|
||||
self.additional_extensions = {
|
||||
u'audio/ac3': [u'.ac3'],
|
||||
u'audio/qcelp': [u'.qcp'],
|
||||
u'audio/riff-midi': [u'.rmi'],
|
||||
u'audio/x-alaw': [u'.alaw'],
|
||||
u'audio/x-m4a': [u'.m4a'],
|
||||
u'audio/x-mp3': [u'.mp3'],
|
||||
u'audio/x-wma': [u'.wma'],
|
||||
u'video/x-wmv': [u'.wmv'],
|
||||
u'video/x-xvid': [u'.xvid']}
|
||||
self.audio_extensions_list = []
|
||||
self.video_extensions_list = []
|
||||
mimetypes.init()
|
||||
@ -65,7 +73,7 @@ class MediaPlugin(Plugin):
|
||||
if ext not in list:
|
||||
list.append(ext)
|
||||
self.serviceManager.supportedSuffixes(extension[1:])
|
||||
log.info(u'MediaPlugin: %s extensions: %s' % (mimetype,
|
||||
log.info(u'MediaPlugin: %s extensions: %s' % (mimetype,
|
||||
u' '.join(extensions)))
|
||||
# Add all extensions listed in self.additional_extensions, which
|
||||
# have this mimetype, previously claimed to be supported by Phonon,
|
||||
@ -76,7 +84,7 @@ class MediaPlugin(Plugin):
|
||||
if ext not in list:
|
||||
list.append(ext)
|
||||
self.serviceManager.supportedSuffixes(extension[1:])
|
||||
log.info(u'MediaPlugin: %s additional extensions: %s' % (mimetype,
|
||||
log.info(u'MediaPlugin: %s additional extensions: %s' % (mimetype,
|
||||
u' '.join(self.additional_extensions[mimetype])))
|
||||
|
||||
def about(self):
|
||||
|
Loading…
Reference in New Issue
Block a user