From: Sergey M․ Date: Fri, 29 Jan 2016 19:48:54 +0000 (+0600) Subject: [espn] Improve video id extraction (Closes #8368) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=83ab8a79ccc3b6ef143f7d636c0118f7c3e5777b;p=youtube-dl [espn] Improve video id extraction (Closes #8368) --- 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\d+)', + webpage, 'video id', group='id') cms = 'espn' if 'data-source="intl"' in webpage: