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 )