Gabriel Vasile
Gabriel Vasile
Great, this should be straight forward.
I'm looking into this. Linux `file` utility (which is, I'd say, best file format detection tool) also fails to detect the samples. What program/library was used to create these samples?
Mp3 files are made up of frames. The problem seems to be that the test recordings start with an incomplete frame (maybe because they have been streamed?) The first complete...
This file: https://drive.google.com/file/d/1sL18cF-zwN7txDfm30QnZoLlozcG4-5g/view?usp=sharing is the original mp3 from radio-t.com or was it saved through `radiot_dumper`? I think there are some problems with the way `StreamCopier` saves files.
> Unfortunately, the problem has not been resolved. Apparently the point is that this is a stream, and not just a recording I'm not sure about that. I saved some...
Hi, `application/x-python` was initially chosen because the detection works for [python scripts](https://github.com/gabriel-vasile/mimetype/blob/14adc293c7505feb4cb250a5b78469723bb1e85f/testdata/py.py) that are meant to be run in command line. But you are right, we should use `text/x-python` because...
Hi, @peric Thank you for reporting this issue. It should be fixed. You can upgrade to latest commit to test, if you don't want to wait until the next release:...
If you don't have any privacy concerns, please upload the .msi file. Does disabling the limit help? ```go mimetype.SetLimit(0) mimetype.Detect(.msi) ```
Hi, #240 should fix this. You can test it with: ```bash go get github.com/gabriel-vasile/mimetype@b497e3d7a11a41902e4e2f29d931521714befc26 ``` ```go mimetype.SetLimit(1024 * 1024) mimetype.DetectFile("tortoise.msi") ``` Let me know if there's any problems still.
JSON content beginning in low-ascii characters is no longer detected as application/json since 1.0.1
#241 should fix this. You can test it with: ```bash go get github.com/gabriel-vasile/mimetype@272584c8 ``` Let me know if there's still an issue.