From 6180a2917d6f4145c0c8a21b0c352ff7b26d2d02 Mon Sep 17 00:00:00 2001 From: Jack Robison <jackrobison@lbry.io> Date: Fri, 7 Dec 2018 13:06:36 -0500 Subject: [PATCH] add epub and wmv content types --- lbrynet/extras/daemon/mime_types.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lbrynet/extras/daemon/mime_types.py b/lbrynet/extras/daemon/mime_types.py index e4cb18788..ac5c96033 100644 --- a/lbrynet/extras/daemon/mime_types.py +++ b/lbrynet/extras/daemon/mime_types.py @@ -26,6 +26,7 @@ types_map = { '.dvi': 'application/x-dvi', '.eml': 'message/rfc822', '.eps': 'application/postscript', + '.epub': 'application/epub+zip', '.etx': 'text/x-setext', '.exe': 'application/octet-stream', '.gif': 'image/gif', @@ -142,7 +143,11 @@ types_map = { '.pic': 'image/pict', '.pict': 'image/pict', '.rtf': 'application/rtf', - '.xul': 'text/xul' + '.xul': 'text/xul', + + # 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' }