1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[spankbang] Fix title extraction (Closes #8329)

This commit is contained in:
Sergey M․ 2016-01-27 21:49:56 +06:00
parent 9339774af2
commit c3111ab34f

View file

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