From: Sergey M․ Date: Wed, 6 May 2015 15:52:26 +0000 (+0600) Subject: [historicfilms] Fix tape id extraction X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=ad0c0ad3b4db546dc2078391f397aa5b44c8150b;p=youtube-dl [historicfilms] Fix tape id extraction --- diff --git a/youtube_dl/extractor/historicfilms.py b/youtube_dl/extractor/historicfilms.py index 40afbe537..6a36933ac 100644 --- a/youtube_dl/extractor/historicfilms.py +++ b/youtube_dl/extractor/historicfilms.py @@ -25,7 +25,8 @@ class HistoricFilmsIE(InfoExtractor): webpage = self._download_webpage(url, video_id) tape_id = self._search_regex( - r'class="tapeId">([^<]+)<', webpage, 'tape id') + [r'class="tapeId"[^>]*>([^<]+)<', r'tapeId\s*:\s*"([^"]+)"'], + webpage, 'tape id') title = self._og_search_title(webpage) description = self._og_search_description(webpage)