From b40c80de250519bf80bed59aaa6eb6f720d8535b Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Sat, 4 Nov 2006 12:32:10 -0800 Subject: [PATCH] add Microsoft's audio/video mimetypes.. [git-p4: depot-paths = "//depot/": change = 920] --- pymediaserv | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pymediaserv b/pymediaserv index f7168d8..ca41ed2 100755 --- a/pymediaserv +++ b/pymediaserv @@ -110,8 +110,16 @@ root.putChild('content', content) # Purely to ensure some sane mime-types. On MacOSX I need these. medianode = static.File('pymediaserv') medianode.contentTypes.update( { - '.wmv': 'video/x-ms-wmv', + # From: http://support.microsoft.com/kb/288102 '.asf': 'video/x-ms-asf', + '.asx': 'video/x-ms-asf', + '.wma': 'audio/x-ms-wma', + '.wax': 'audio/x-ms-wax', + '.wmv': 'video/x-ms-wmv', + '.wvx': 'video/x-ms-wvx', + '.wm': 'video/x-ms-wm', + '.wmx': 'video/x-ms-wmx', + #'.ts': 'video/mp2t', '.ts': 'video/mpeg', # we may want this instead of mp2t '.m2t': 'video/mpeg',