From 3cb3a1b80d19b8b5fd0c1f777669740fd906f64a Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Mon, 9 Sep 2024 09:04:05 +1200 Subject: [PATCH] youtube with and without the www --- app/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils.py b/app/utils.py index f129cb19..cf25fcc1 100644 --- a/app/utils.py +++ b/app/utils.py @@ -210,7 +210,7 @@ def is_video_url(url: str) -> bool: def is_video_hosting_site(url: str) -> bool: - video_hosting_sites = ['https://www.youtube.com', 'https://youtu.be', 'https://www.vimeo.com', 'https://www.redgifs.com/watch/'] + video_hosting_sites = ['https://youtube.com', 'https://www.youtube.com', 'https://youtu.be', 'https://www.vimeo.com', 'https://www.redgifs.com/watch/'] for starts_with in video_hosting_sites: if url.startswith(starts_with): return True