Update utils/gui_utils.py

Co-authored-by: Callum Leslie <git@cleslie.uk>
pull/1423/head
Simon 2 years ago committed by GitHub
parent 6fe9caaece
commit 521926213d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
)

Loading…
Cancel
Save