Author: tack
Date: Wed Jun 27 21:02:55 2007
New Revision: 2735

Modified:
   trunk/metadata/src/audio/flac.py
   trunk/metadata/src/audio/ogg.py

Log:
Mimetype fixes.


Modified: trunk/metadata/src/audio/flac.py
==============================================================================
--- trunk/metadata/src/audio/flac.py    (original)
+++ trunk/metadata/src/audio/flac.py    Wed Jun 27 21:02:55 2007
@@ -50,6 +50,9 @@
         if file.read(4) != 'fLaC':
             raise core.ParseError()
 
+        # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
+        self.mime = 'application/flac'
+
         while 1:
             (blockheader,) = struct.unpack('>I',file.read(4))
             lastblock = (blockheader >> 31) & 1

Modified: trunk/metadata/src/audio/ogg.py
==============================================================================
--- trunk/metadata/src/audio/ogg.py     (original)
+++ trunk/metadata/src/audio/ogg.py     Wed Jun 27 21:02:55 2007
@@ -1,6 +1,6 @@
 # -*- coding: iso-8859-1 -*-
 # -----------------------------------------------------------------------------
-# ogg.py - ogg file parser
+# ogg.py - ogg file parser (vorbis only)
 # -----------------------------------------------------------------------------
 # $Id$
 #
@@ -65,7 +65,8 @@
             log.info("Wrong vorbis header type, giving up.")
             raise core.ParseError()
 
-        self.mime = 'application/ogg'
+        # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
+        self.mime = 'audio/x-vorbis+ogg'
         header = {}
         info = file.read(23)
         self.version, self.channels, self.samplerate, bitrate_max, \

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to