From 00765d4b262c4edd62a2236ed6d9698153a3ded0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 8 Oct 2022 15:15:06 +0100 Subject: [PATCH] Test for channel name --- webapp_media.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp_media.py b/webapp_media.py index c5320eea4..e68657c4b 100644 --- a/webapp_media.py +++ b/webapp_media.py @@ -43,7 +43,11 @@ def _add_embedded_video_from_sites(translate: {}, content: str, url = content.split('www.twitch.tv/')[1] if '<' in url: channel = url.split('<')[0] - if channel and '/' not in channel and ' ' not in channel: + if channel and \ + '/' not in channel and \ + '?' not in channel and \ + '=' not in channel and \ + ' ' not in channel: content += \ '
\n\n' + \ '