]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[spankbang] Fix title extraction (Closes #8329)
authorSergey M․ <dstftw@gmail.com>
Wed, 27 Jan 2016 15:49:56 +0000 (21:49 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 27 Jan 2016 15:49:56 +0000 (21:49 +0600)
youtube_dl/extractor/spankbang.py

index a67db59057d9b3d732899d016b8b87d1694236b9..3cfa671ed40722ceaa7da647a0b2bf0104a74de5 100644 (file)
@@ -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)