Browse Source

[spankbang] Fix title extraction (Closes #8329)

master
Sergey M․ 8 years ago
parent
commit
c3111ab34f
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/spankbang.py

2
youtube_dl/extractor/spankbang.py

@ -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)

Loading…
Cancel
Save