classification
Title: Support LMMS project files in mimetypes.guess_type
Type: enhancement Stage: needs patch
Components: Library (Lib) Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Andreas Nilsson, Nan Wu
Priority: normal Keywords: easy

Created on 2015-06-20 10:18 by Andreas Nilsson, last changed 2015-07-23 05:22 by Nan Wu.

Files
File name Uploaded Description Edit
seaman.mmp Andreas Nilsson, 2015-06-22 03:47 Example decompressed LMMS project file
issue24479_support_mmp_and_mmpz_suffix_in_guess_type Nan Wu, 2015-07-23 05:22 added .mmp/.mmps type and tested it. review
Messages (3)
msg245556 - (view) Author: Andreas Nilsson (Andreas Nilsson) * Date: 2015-06-20 10:18
There is no support for recognizing LMMS project files (.mmpz / .mmp). Could this be added for strict=False?
msg245617 - (view) Author: Andreas Nilsson (Andreas Nilsson) * Date: 2015-06-22 03:47
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!
msg247168 - (view) Author: Nan Wu (Nan Wu) * Date: 2015-07-23 05:22
Added a small patch. Pls let me know if anything missed.
History
Date User Action Args
2015-07-23 05:22:57Nan Wusetfiles: + issue24479_support_mmp_and_mmpz_suffix_in_guess_type
nosy: + Nan Wu
messages: + msg247168

2015-06-22 03:47:56Andreas Nilssonsetfiles: + seaman.mmp

messages: + msg245617
2015-06-20 22:53:41ned.deilysetkeywords: + easy
stage: needs patch
versions: + Python 3.6, - Python 3.3
2015-06-20 10:18:22Andreas Nilssoncreate