From 3f1754e518eec8d9dba88b3711174504a411192d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 8 Oct 2022 16:05:27 +0100 Subject: [PATCH] Video separator --- webapp_media.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp_media.py b/webapp_media.py index f502418f7..e7cb9aa58 100644 --- a/webapp_media.py +++ b/webapp_media.py @@ -43,8 +43,8 @@ def _add_embedded_video_from_sites(translate: {}, content: str, if '<' in url: url = url.split('<')[0] if '/video/' in url: - channel = url.split('/')[0] - video_id = url.split('/')[1] + channel = url.split('/video/')[0] + video_id = url.split('/video/')[1] if '?' in video_id: video_id = video_id.split('?')[0] content += \