From 712baf2b4fdb7042983bd020aa4d7138e0d95ae1 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 27 Feb 2021 12:14:33 +0100 Subject: [PATCH] ass2mks: Add default mime type --- ass2mks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ass2mks.py b/ass2mks.py index d73aa32..cfc3c2a 100755 --- a/ass2mks.py +++ b/ass2mks.py @@ -107,7 +107,7 @@ for font in fonts: command.extend( [ "--attachment-mime-type", - mimetypes.guess_type(font["path"])[0], + mimetypes.guess_type(font["path"])[0] or "font/sfnt", "--attach-file", font["path"], ]