From a81bf011f60fc103ca0f076df7a86907cc194557 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 22 Feb 2022 10:08:56 +0000 Subject: [PATCH] Another youtube subdomain --- webapp_media.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp_media.py b/webapp_media.py index d70417452..ebde02736 100644 --- a/webapp_media.py +++ b/webapp_media.py @@ -49,6 +49,8 @@ def _add_embedded_video_from_sites(translate: {}, content: str, return content video_site = 'https://www.youtube.com' + if 'https://m.youtube.com' in content: + content = content.replace('https://m.youtube.com', video_site) if '"' + video_site in content: url = content.split('"' + video_site)[1] if '"' in url: