https://bugs.gpodder.org/show_bug.cgi?id=1502
--- Comment #2 from Thomas Perl <[email protected]> 2011-11-25 20:59:03 GMT --- (In reply to comment #1) > @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? Can't we hardcode the mime types in the extensions, because we already know the file extension (e.g. mp4 for the mp4 converter script, etc..)? -- 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
