From ffdefd6d6eb0a7e6d8b551e8420e138d51f4d3a1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Aug 2019 17:54:48 +0100 Subject: [PATCH] Specify only width --- webinterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index 371ac3ce..a42b7a05 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1009,14 +1009,14 @@ def htmlRemplaceEmojiFromTags(content: str,tag: {}) -> str: content=content.replace(tagItem['name'],emojiHtml) return content -def addEmbeddedVideo(content: str) -> str: +def addEmbeddedVideo(content: str,width=320) -> str: """Adds embedded videos """ if '>vimeo.com/' in content: url=content.split('>vimeo.com/')[1] if '<' in url: url=url.split('<')[0] - content=content+"" + content=content+"" return content def individualPostAsHtml(baseDir: str, \