From 521926213db7356f1520ada21cfc681ea97a6800 Mon Sep 17 00:00:00 2001 From: Simon <65854503+OpenSourceSimon@users.noreply.github.com> Date: Tue, 3 Jan 2023 16:33:29 +0100 Subject: [PATCH] Update utils/gui_utils.py Co-authored-by: Callum Leslie --- utils/gui_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/gui_utils.py b/utils/gui_utils.py index b539ff7..9d644d8 100644 --- a/utils/gui_utils.py +++ b/utils/gui_utils.py @@ -162,7 +162,7 @@ def delete_background(key): # Add background video def add_background(youtube_uri, filename, citation, position): # Validate YouTube URI - regex = re.compile(r"(?:\/|%3D|v=|vi=)([0-9A-z-_]{11})(?:[%#?&]|$)").search( + regex = re.compile(r"(?:\/|%3D|v=|vi=)([0-9A-z\-_]{11})(?:[%#?&]|$)").search( youtube_uri )