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]+))" )