浏览代码

[spankbang] Fix title extraction (Closes #8329)

Sergey M․ 9 年之前
父节点
当前提交
c3111ab34f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/spankbang.py

+ 1 - 1
youtube_dl/extractor/spankbang.py

@@ -38,7 +38,7 @@ class SpankBangIE(InfoExtractor):
         self._sort_formats(formats)
 
         title = self._html_search_regex(
-            r'(?s)<h1>(.+?)</h1>', webpage, 'title')
+            r'(?s)<h1[^>]*>(.+?)</h1>', webpage, 'title')
         description = self._search_regex(
             r'class="desc"[^>]*>([^<]+)',
             webpage, 'description', default=None)