diff options
author | John Hawkinson <jhawk@mit.edu> | 2017-11-24 08:10:47 -0500 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2017-11-24 21:39:55 +0800 |
commit | 32ad4f3faf33d7ffedf08b3f8e39acb084b361fa (patch) | |
tree | 21696066dffe569c97bb4d0a853ef52cd773f62a /youtube_dl/extractor | |
parent | 6899b1d9e87857e0ae2d36f710e0e12885b29c09 (diff) | |
download | youtube-dl-32ad4f3faf33d7ffedf08b3f8e39acb084b361fa.tar.xz |
[JWPlatform] Use non-capturing group in RE
Per @yan12125.
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/jwplatform.py | 2 |
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') |