1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-28 12:25:56 +01:00

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

This commit is contained in:
Jaime Marquínez Ferrándiz 2015-11-18 18:28:05 +01:00
parent 312a3f389b
commit 63b4295d20

View File

@ -1615,7 +1615,7 @@ class YoutubePlaylistIE(YoutubeBaseInfoExtractor, YoutubePlaylistBaseInfoExtract
self.report_warning('Youtube gives an alert message: ' + match)
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')
return self.playlist_result(self._entries(page, playlist_id), playlist_id, playlist_title)