https://bugs.gpodder.org/show_bug.cgi?id=1502

--- Comment #1 from Bernd Schlapsi <[email protected]> 2011-11-25 16:34:56 GMT ---
@thp:

I found three ways to determine the mime type of a file:
- "mimetypes" module in the standard library
-- determines the mime-type from the file extension. Doesn't provide a
   good result

- call "file" shell command.
-- but that would not work on Windows I think

- python-magic (http://pypi.python.org/pypi/python-magic/)
-- the best way, but than we had to add one more dependency to gPodder :-(

Do you know a better/another way to determine the mime-type from a file on the
file-system?

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to