From 0a7656e5499ddd91e2b2f3b74eb5b5e417bfb7c7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 1 Sep 2022 09:07:05 +0100 Subject: [PATCH 1/5] Check that media url is not just the site domain name --- webapp_media.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp_media.py b/webapp_media.py index 6ef38a54a..9d4d3e5db 100644 --- a/webapp_media.py +++ b/webapp_media.py @@ -133,6 +133,8 @@ def _add_embedded_video_from_sites(translate: {}, content: str, url += '?autoplay=0' else: url = url.replace('?autoplay=1', '?autoplay=0') + if not url: + continue content += \ "
\n\n" + \ "