← Back to team overview

openlp-core team mailing list archive

Re: [Merge] lp:~mahfiaz/openlp/fixes_and_improvements into lp:openlp

 

Tim, if you take a closer look, then lines past diff line 57 only read self.additional_extensions, it is written once earlier on line 25. What it does, is the following:
30: Phonon is asked about mimetypes it supports
for every mimetype
46: mimetypes module is asked about extensions for this mimetype (irrelevant: 29: mimetypes.init() makes it not only use predefined list but ask operating system as well)
57: if currently investigated mimetype is present in self.additional_extensions, extensions from a list in that dictionary are added as well

So for example your Phonon supports audio/qcelp, which unfortunately gets no extension from mimetypes module, you could add one yourself, which get's added only when Phonon supports audio/qcelp, and maybe one for audio/ac3 as well:
self.additional_extensions = {
    u'audio/qcelp': [u'.qcp'],
    u'audio/ac3': [u'.ac3']}
-- 
https://code.launchpad.net/~mahfiaz/openlp/fixes_and_improvements/+merge/50764
Your team OpenLP Core is subscribed to branch lp:openlp.



References