From 3ebf0a3b031451c80f94c4d6e4272a9ac005d0a7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Jul 2020 20:49:09 +0000 Subject: [PATCH] More general --- webinterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index 4907b1d9..ecc49606 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2245,9 +2245,9 @@ def htmlNewPost(mediaInstance: bool, translate: {}, def getFontFromCss(css: str) -> (str, str): """Returns the font name and format """ - if 'src: url(' not in css: + if ' url(' not in css: return None, None - fontName = css.split("src: url('")[1].split("')")[0] + fontName = css.split(" url('")[1].split("')")[0] fontFormat = css.split(" format('")[1].split("')")[0] return fontName, fontFormat