From 575600d72854d19a89411ae3af80d40f5e94c344 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Sun, 21 Apr 2013 17:30:14 +0200 Subject: [PATCH] add support for MIME type: video/x-matroska --- src/you_get/common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/you_get/common.py b/src/you_get/common.py index 8978071a..9049fb81 100644 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -544,6 +544,8 @@ def print_info(site_info, title, type, size): type = 'video/x-ms-asf' elif type in ['flv', 'f4v']: type = 'video/x-flv' + elif type in ['mkv']: + type = 'video/x-matroska' elif type in ['mp3']: type = 'audio/mpeg' elif type in ['mp4']: @@ -569,8 +571,8 @@ def print_info(site_info, title, type, size): # type_info = "Ogg video (%s)" % type elif type in ['video/quicktime']: type_info = "QuickTime video (%s)" % type - #elif type in ['video/x-matroska']: - # type_info = "Matroska video (%s)" % type + elif type in ['video/x-matroska']: + type_info = "Matroska video (%s)" % type #elif type in ['video/x-ms-wmv']: # type_info = "Windows Media video (%s)" % type elif type in ['video/x-ms-asf']: