Browse Source

[youtube:playlist] fix title extraction (fixes #7544 and #7545)

master
Jaime Marquínez Ferrándiz 9 years ago
parent
commit
63b4295d20
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/youtube.py

2
youtube_dl/extractor/youtube.py

@ -1615,7 +1615,7 @@ class YoutubePlaylistIE(YoutubeBaseInfoExtractor, YoutubePlaylistBaseInfoExtract
self.report_warning('Youtube gives an alert message: ' + match) self.report_warning('Youtube gives an alert message: ' + match)
playlist_title = self._html_search_regex( playlist_title = self._html_search_regex(
r'(?s)<h1 class="pl-header-title[^"]*">\s*(.*?)\s*</h1>',
r'(?s)<h1 class="pl-header-title[^"]*"[^>]*>\s*(.*?)\s*</h1>',
page, 'title') page, 'title')
return self.playlist_result(self._entries(page, playlist_id), playlist_id, playlist_title) return self.playlist_result(self._entries(page, playlist_id), playlist_id, playlist_title)

Loading…
Cancel
Save