summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-01-27 21:49:56 +0600
committerSergey M․ <dstftw@gmail.com>2016-01-27 21:49:56 +0600
commitc3111ab34fed3af16f645c6ee4dcd6e5d35b69dd (patch)
treef3c4f45e105bb3312015f2ff1cfb4921d9e17f94
parent9339774af274b04a054b0fa151347619e40b5b21 (diff)
downloadyoutube-dl-c3111ab34fed3af16f645c6ee4dcd6e5d35b69dd.tar.gz
youtube-dl-c3111ab34fed3af16f645c6ee4dcd6e5d35b69dd.tar.xz
youtube-dl-c3111ab34fed3af16f645c6ee4dcd6e5d35b69dd.zip
[spankbang] Fix title extraction (Closes #8329)
-rw-r--r--youtube_dl/extractor/spankbang.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/spankbang.py b/youtube_dl/extractor/spankbang.py
index a67db5905..3cfa671ed 100644
--- a/youtube_dl/extractor/spankbang.py
+++ b/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)