From 7e650dcf75d71b47edb064fb937b2210c1ff2b89 Mon Sep 17 00:00:00 2001 From: RiveN <61630074+RiveN000@users.noreply.github.com> Date: Wed, 17 Aug 2022 16:28:35 +0200 Subject: [PATCH] Testing new regex --- GUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI.py b/GUI.py index a658e60..a4f1e01 100644 --- a/GUI.py +++ b/GUI.py @@ -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: