]> git.parisson.com Git - timeside.git/commitdiff
fix mime-types fir ogg and mp3
authoryomguy <yomguy@parisson.com>
Mon, 30 Aug 2010 01:45:29 +0000 (01:45 +0000)
committeryomguy <yomguy@parisson.com>
Mon, 30 Aug 2010 01:45:29 +0000 (01:45 +0000)
timeside/decoder/core.py
timeside/encoder/ogg.py

index 0a467570d8180e1880b21b763162e5e548a952ae..1c6f11d6c2bde0cd43164fbbcf3e0d9bac34839d 100644 (file)
@@ -117,6 +117,8 @@ class FileDecoder(Processor):
     @interfacedoc
     def format(self):
         # TODO check
+        if self.mimetype == 'application/x-id3':
+            self.mimetype = 'audio/mpeg'
         return self.mimetype
 
     @interfacedoc
index b120e4fdeac92546ec28c0b5b6cd68bcb1db4dfb..c7ad5e3fbb55f42378908f153e1c5024e1ce87cc 100644 (file)
@@ -87,7 +87,7 @@ class VorbisEncoder(Processor):
     @staticmethod
     @interfacedoc
     def mime_type():
-        return "audio/ogg"
+        return "application/ogg"
 
     @interfacedoc
     def set_metadata(self, metadata):