-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Support LMMS project files in mimetypes.guess_type #68667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There is no support for recognizing LMMS project files (.mmpz / .mmp). Could this be added for strict=False? |
Here is a decompressed example (use lmms -d <file> to decompress). Shouldn't this be parsed as XML? Here's a log of my experiment with it: Python 2.7.9 (default, Apr 2 2015, 15:33:21)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mimetypes
>>> mimetypes.init()
>>> mimetypes.guess_type("seaman.mmp")
(None, None)
>>> mimetypes.guess_type("seaman.mmp", False)
(None, None) By default LMMS saves as .mmpz which is the compressed type, I do not know the encryption method they use though but I can ask them if you want so! |
Added a small patch. Pls let me know if anything missed. |
This issue is 4 years old and has patches: it is no newcomer friendly, I remove the "easy" keyword. |
I'd like to work on this issue. |
# Before adding new types, make sure they are either registered with IANA,
# at https://www.iana.org/assignments/media-types/media-types.xhtml
# or extensions, i.e. using the x- prefix And I don't see any LMMS / mmp / mmpz / application/x-lmms-project at https://www.iana.org/assignments/media-types/media-types.xhtml. There is a smaller list of non-standard types: # These are non-standard types, commonly found in the wild. They will
# only match if strict=0 flag is given to the API methods. I guess we could add it there? @corona10 Are you still interested in this? |
@hugovk |
Thanks, is there some sort of documentation or prior use for The 2015 patch suggested |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: