]> git.parisson.com Git - timeside.git/commitdiff
timeside/api.py: add IDecoder.mime_type
authorPaul Brossier <piem@piem.org>
Sun, 2 Feb 2014 15:50:37 +0000 (12:50 -0300)
committerPaul Brossier <piem@piem.org>
Sun, 2 Feb 2014 15:50:37 +0000 (12:50 -0300)
timeside/api.py

index b6eeb787a9e4aa23ce020900e4f2ff889c7540ae..b2140235b6152dae31872d2d60bb6d1e960e71c3 100644 (file)
@@ -170,6 +170,9 @@ class IDecoder(IProcessor):
     def metadata(self):
         """Return the metadata embedded into the encoded stream, if any."""
 
+    def mime_type():
+        """Return the mime type corresponding to this decoded format"""
+
 class IGrapher(IProcessor):
     """Media item visualizer driver interface"""