Browse Source

[JWPlatform] Use non-capturing group in RE

Per @yan12125.
John Hawkinson 7 years ago
parent
commit
32ad4f3faf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/jwplatform.py

+ 1 - 1
youtube_dl/extractor/jwplatform.py

@@ -24,7 +24,7 @@ class JWPlatformIE(InfoExtractor):
     @staticmethod
     @staticmethod
     def _extract_url(webpage):
     def _extract_url(webpage):
         mobj = re.search(
         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)
             webpage)
         if mobj:
         if mobj:
             return mobj.group('url')
             return mobj.group('url')