[espn] Improve video id extraction (Closes #8368)

pull/8267/head
Sergey M․ 2016-01-30 01:48:54 +06:00
parent 350cf045d8
commit 83ab8a79cc
1 changed files with 2 additions and 2 deletions

View File

@ -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: