From 478e2085828750093b4d8c2d0cba475867fe2a5f Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Wed, 22 Aug 2012 08:39:00 -0300 Subject: [PATCH] Generic mime types: add video mime types that are supported by Jukebox Extending the generic list will make those mime-types available in the filter list (ObjectChooser, Journal). We have been extending the generic list similarly before [1][2]. For the longer term fix see [3] to add support for custom mime types in the ObjectChooser. [1] http://bugs.sugarlabs.org/ticket/1319 [2] http://bugs.sugarlabs.org/ticket/1340 [3] http://bugs.sugarlabs.org/ticket/834 Signed-off-by: Manuel Kaufmann Acked-by: Simon Schampijer --- src/sugar3/mime.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/sugar3/mime.py b/src/sugar3/mime.py index 448585ef..07d085e4 100644 --- a/src/sugar3/mime.py +++ b/src/sugar3/mime.py @@ -65,7 +65,13 @@ _generic_types = [ 'id': GENERIC_TYPE_VIDEO, 'name': _('Video'), 'icon': 'video-x-generic', - 'types': ['video/ogg', 'application/ogg', 'video/x-theora+ogg'], + 'types': ['video/ogg', 'application/ogg', 'video/x-theora+ogg', + 'video/x-theora', 'video/x-mng', 'video/mpeg4', + 'video/mpeg-stream', 'video/mpeg', 'video/mpegts', 'video/mpeg2', + 'video/mpeg1', 'video/x-cdxa', 'video/x-ogm+ogg', 'video/x-flv', + 'video/mp4', 'video/x-matroska', 'video/x-msvideo', + 'application/x-ogm-video', 'video/quicktime', 'video/x-quicktime' + 'video/avi'], }, { 'id': GENERIC_TYPE_LINK,