Browse Source

[nhl:videocenter] Fix playlist title extraction

Jaime Marquínez Ferrándiz 12 năm trước cách đây
mục cha
commit
ce68b5907c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      youtube_dl/extractor/nhl.py

+ 2 - 2
youtube_dl/extractor/nhl.py

@@ -90,8 +90,8 @@ class NHLVideocenterIE(NHLBaseInfoExtractor):
              r'{statusIndex:0,index:0,.*?id:(.*?),'],
             webpage, u'category id')
         playlist_title = self._html_search_regex(
-            r'\?catid=%s">(.*?)</a>' % cat_id,
-            webpage, u'playlist title', flags=re.DOTALL)
+            r'tab0"[^>]*?>(.*?)</td>',
+            webpage, u'playlist title', flags=re.DOTALL).lower().capitalize()
 
         data = compat_urllib_parse.urlencode({
             'cid': cat_id,