From: John Hawkinson Date: Fri, 24 Nov 2017 13:10:47 +0000 (-0500) Subject: [JWPlatform] Use non-capturing group in RE X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=32ad4f3faf33d7ffedf08b3f8e39acb084b361fa;p=youtube-dl.git [JWPlatform] Use non-capturing group in RE Per @yan12125. --- diff --git a/youtube_dl/extractor/jwplatform.py b/youtube_dl/extractor/jwplatform.py index 4e74eafac..c9bcbb08f 100644 --- a/youtube_dl/extractor/jwplatform.py +++ b/youtube_dl/extractor/jwplatform.py @@ -24,7 +24,7 @@ class JWPlatformIE(InfoExtractor): @staticmethod def _extract_url(webpage): mobj = re.search( - r'<(script|iframe)[^>]+?src=["\'](?P(?:https?:)?//content.jwplatform.com/players/[a-zA-Z0-9]{8})', + r'<(?:script|iframe)[^>]+?src=["\'](?P(?:https?:)?//content.jwplatform.com/players/[a-zA-Z0-9]{8})', webpage) if mobj: return mobj.group('url')