aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/espn.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-01-30 16:25:55 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-01-30 16:25:55 +0800
commit8bf39420b4712c33aff45abba4a910e7e58cba5a (patch)
treec5bf40f9baea503b9a78affabac1792bf55659f8 /youtube_dl/extractor/espn.py
parent71d08b3e2955683ce0222473dff358496798f5b5 (diff)
parent83ab8a79ccc3b6ef143f7d636c0118f7c3e5777b (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'youtube_dl/extractor/espn.py')
-rw-r--r--youtube_dl/extractor/espn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/espn.py b/youtube_dl/extractor/espn.py
index 3762d8748..db4b263bc 100644
--- a/youtube_dl/extractor/espn.py
+++ b/youtube_dl/extractor/espn.py
@@ -53,8 +53,8 @@ class ESPNIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
video_id = self._search_regex(
- r'class="video-play-button"[^>]+data-id="(\d+)',
- webpage, 'video id')
+ r'class=(["\']).*?video-play-button.*?\1[^>]+data-id=["\'](?P<id>\d+)',
+ webpage, 'video id', group='id')
cms = 'espn'
if 'data-source="intl"' in webpage: