leosongwei / mutagen

Automatically exported from code.google.com/p/mutagen
GNU General Public License v2.0
0 stars 0 forks source link

Missing Ogg MIME-types #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
OggFileType currently claims to support the MIME types application/ogg and
application/x-ogg.

According to http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
the following MIME types have also been registered:

audio/ogg and audio/vorbis

A lot of content seem to use these MIME types, so it would be a good idea
to add these types to OggFileType._mimes

Original issue reported on code.google.com by stefan.p...@mbnet.fi on 3 Jan 2010 at 8:34

GoogleCodeExporter commented 9 years ago
The intent of the MIME data in Mutagen is so you can, given a FileType 
instance, see
if there's any intersection between its types and some kind of playback engine. 
From
that perspective, the audio/ogg format doesn't make a lot of sense, since it 
could be
one of any three (or more, but three supported by Mutagen) formats.

application/ogg tells you "this is in an Ogg container", which is useful 
information.
audio/vorbis tells you "this is a Vorbis file in some kind of container". 
Between
those two you can figure out "this is an Ogg Vorbis file". The audio/ogg
classification only adds ambiguity.

audio/vorbis is already supported. It's provided by OggVorbis, not the more 
generic
OggFileType.

Original comment by joe.wreschnig@gmail.com on 6 Jan 2010 at 5:14