diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-01-30 01:48:54 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-01-30 01:48:54 +0600 |
commit | 83ab8a79ccc3b6ef143f7d636c0118f7c3e5777b (patch) | |
tree | 14e24088805383af0ac954d40f16e2af8e9b03e1 | |
parent | 350cf045d8f86497e8d79ae193b40cc44c8e670c (diff) |
[espn] Improve video id extraction (Closes #8368)
-rw-r--r-- | youtube_dl/extractor/espn.py | 4 |
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: |