From 0a304f9b6c0eeffac4bfc2a351bac07a2665498e Mon Sep 17 00:00:00 2001 From: dece Date: Sun, 6 Mar 2022 17:26:48 +0100 Subject: [PATCH] youtube_parser: support Invidious URLs --- edmond/plugins/youtube_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edmond/plugins/youtube_parser.py b/edmond/plugins/youtube_parser.py index b935d28..3104dff 100644 --- a/edmond/plugins/youtube_parser.py +++ b/edmond/plugins/youtube_parser.py @@ -12,7 +12,7 @@ from edmond.plugin import Plugin class YoutubeParserPlugin(Plugin): VIDEO_URL_RE = re.compile( - r"https?:\/\/(?:www\.youtube\.com\/watch\?(?:.*&)?v=(?P[^&\s]+)" + r"https?:\/\/(?:[^/]+/watch\?(?:.*&)?v=(?P[^&\s]+)" r"|youtu\.be/(?P[^&\s]+))" )