mobi support #41, fix logs

This commit is contained in:
2020-04-20 19:59:10 -04:00
parent d1e088e662
commit ea50b13b02
9 changed files with 458 additions and 404 deletions

View File

@@ -62,6 +62,11 @@ doc = (
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
)
mobi = (
"application/x-mobipocket-ebook",
"application/vnd.amazon.mobi8-ebook"
)
cnt = 1
@@ -82,6 +87,8 @@ def mime_id(mime):
mime_id += " | 0x08000000"
elif mime in doc:
mime_id += " | 0x04000000"
elif mime in mobi:
mime_id += " | 0x02000000"
elif mime == "application/x-empty":
return "1"
return mime_id