瀏覽代碼

[historicfilms] Fix tape id extraction

Sergey M․ 10 年之前
父節點
當前提交
ad0c0ad3b4
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/historicfilms.py

+ 2 - 1
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)