From 86ee6a78f52df93f65264280cba2a8b419c8e231 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Mon, 3 Jun 2019 18:07:44 -0400 Subject: [PATCH] add MKV to mime types --- lbrynet/schema/mime_types.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lbrynet/schema/mime_types.py b/lbrynet/schema/mime_types.py index 3977943e4..d00ffedd8 100644 --- a/lbrynet/schema/mime_types.py +++ b/lbrynet/schema/mime_types.py @@ -140,8 +140,10 @@ types_map = { '.cbr': ('application/vnd.comicbook-rar', 'document'), '.cbz': ('application/vnd.comicbook+zip', 'document'), '.lbry': ('application/x-ext-lbry', 'document'), + '.m4v': ('video/m4v', 'video'), '.mid': ('audio/midi', 'audio'), '.midi': ('audio/midi', 'audio'), + '.mkv': ('video/x-matroska', 'video'), '.mobi': ('application/x-mobipocket-ebook', 'document'), '.pct': ('image/pict', 'image'), '.pic': ('image/pict', 'image'), @@ -149,8 +151,7 @@ types_map = { '.prc': ('application/x-mobipocket-ebook', 'document'), '.rtf': ('application/rtf', 'document'), '.xul': ('text/xul', 'document'), - '.m4v': ('video/m4v', 'video'), - + # microsoft is special and has its own 'standard' # https://docs.microsoft.com/en-us/windows/desktop/wmp/file-name-extensions '.wmv': ('video/x-ms-wmv', 'video')