[historicfilms] Fix tape id extraction
authorSergey M․ <dstftw@gmail.com>
Wed, 6 May 2015 15:52:26 +0000 (21:52 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 6 May 2015 15:52:26 +0000 (21:52 +0600)
youtube_dl/extractor/historicfilms.py

index 40afbe537c6eb930216afbe2afda23002151d8f2..6a36933ac2c98ada87b21af4089aa158d42a3112 100644 (file)
@@ -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)