Support for markup files

This commit is contained in:
2020-04-30 20:21:09 -04:00
parent 718169345e
commit bd9e56829c
10 changed files with 224 additions and 200 deletions

View File

@@ -428,3 +428,4 @@ video/x-msvideo, divx
video/x-qtc, qtc
video/x-sgi-movie, movie|mv
x-epoc/x-sisx-app,
application/x-zstd-dictionary,
1 application/arj arj
428 video/x-qtc qtc
429 video/x-sgi-movie movie|mv
430 x-epoc/x-sisx-app
431 application/x-zstd-dictionary

View File

@@ -67,6 +67,12 @@ mobi = (
"application/vnd.amazon.mobi8-ebook"
)
markup = (
"text/xml",
"text/html",
"text/x-sgml"
)
cnt = 1
@@ -89,6 +95,8 @@ def mime_id(mime):
mime_id += " | 0x04000000"
elif mime in mobi:
mime_id += " | 0x02000000"
elif mime in markup:
mime_id += " | 0x01000000"
elif mime == "application/x-empty":
return "1"
return mime_id