From 8e4d6ac4bfe4d1e536d49a6e11b67948ceacaf8f Mon Sep 17 00:00:00 2001 From: iaacornus Date: Sun, 5 Jun 2022 11:55:21 +0800 Subject: [PATCH] fixed the regex pattern --- video_creation/background.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video_creation/background.py b/video_creation/background.py index 6ad2769..317e878 100644 --- a/video_creation/background.py +++ b/video_creation/background.py @@ -39,7 +39,7 @@ def download_background(background): ydl.download("https://www.youtube.com/watch?v=n_Dv4JMiwK8") else: if ( - re.match("https://*youtube.com*", background) + re.match("https://www.youtube.com/watch?v*", background) and background is not None ): ydl.download(background)