Update utils/gui_utils.py

Co-authored-by: Callum Leslie <git@cleslie.uk>
This commit is contained in:
SimonandCallum Leslie authored and GitHub committed 2023-01-03 16:33:29 +01:00
1 parent 6fe9caaece
commit 521926213d
1 file changed
+1 -1
+1 -1
View File
@@ -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
)