aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorJohn Hawkinson <jhawk@mit.edu>2017-11-24 08:10:47 -0500
committerYen Chi Hsuan <yan12125@gmail.com>2017-11-24 21:39:55 +0800
commit32ad4f3faf33d7ffedf08b3f8e39acb084b361fa (patch)
tree21696066dffe569c97bb4d0a853ef52cd773f62a /youtube_dl/extractor
parent6899b1d9e87857e0ae2d36f710e0e12885b29c09 (diff)
[JWPlatform] Use non-capturing group in RE
Per @yan12125.
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/jwplatform.py2
1 files changed, 1 insertions, 1 deletions
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<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')