[JWPlatform] Use non-capturing group in RE
[youtube-dl] / youtube_dl / extractor / jwplatform.py
index 4e74eafac707d8b3c0c4a21cd3d6bcfaf24185ed..c9bcbb08f787ef74bea78c4b402ecb7b167556e7 100644 (file)
@@ -24,7 +24,7 @@ class JWPlatformIE(InfoExtractor):
     @staticmethod
     def _extract_url(webpage):
         mobj = re.search(
-            r'<(script|iframe)[^>]+?src=["\'](?P<url>(?:https?:)?//content.jwplatform.com/players/[a-zA-Z0-9]{8})',
+            r'<(?:script|iframe)[^>]+?src=["\'](?P<url>(?:https?:)?//content.jwplatform.com/players/[a-zA-Z0-9]{8})',
             webpage)
         if mobj:
             return mobj.group('url')