]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youtube:playlist] fix title extraction (fixes #7544 and #7545)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 18 Nov 2015 17:28:05 +0000 (18:28 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 18 Nov 2015 17:28:05 +0000 (18:28 +0100)
youtube_dl/extractor/youtube.py

index 687e0b4dbc1d044eb55c89da722961c68b0428b8..364ca102a6d6033dad6e7c7b45a0cf3ccc15668d 100644 (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)