Testing new regex

This commit is contained in:
RiveN authored and GitHub committed 2022-08-17 16:28:35 +02:00
1 parent 3a93892a22
commit 7e650dcf75
1 file changed
+1 -1
+1 -1
View File
@@ -64,7 +64,7 @@ def add_background():
# Validate YouTube URI
regex = re.compile(
r"(?:https?:\/\/)?(?:www\.)?youtu\.?be(?:\.com)?\/?.*(?:watch|embed)?(?:.*v=|v\/|\/)([\w\-_]+)\&?"
r"(?:\/|%3D|v=|vi=)([0-9A-z-_]{11})(?:[%#?&]|$)"
).search(youtube_uri)
if not regex: