[youtube] Unescape HTML for series (closes #18641)
authorSergey M․ <dstftw@gmail.com>
Mon, 31 Dec 2018 12:57:01 +0000 (19:57 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 31 Dec 2018 12:57:01 +0000 (19:57 +0700)
youtube_dl/extractor/youtube.py

index ac3b4fc170d9f1f4b7500c530dea651b1c0e296d..539ff6ff2a35c141b2485c80836a0ff1c6f33982 100644 (file)
@@ -2043,7 +2043,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
             r'<div[^>]+id="watch7-headline"[^>]*>\s*<span[^>]*>.*?>(?P<series>[^<]+)</a></b>\s*S(?P<season>\d+)\s*•\s*E(?P<episode>\d+)</span>',
             video_webpage)
         if m_episode:
-            series = m_episode.group('series')
+            series = unescapeHTML(m_episode.group('series'))
             season_number = int(m_episode.group('season'))
             episode_number = int(m_episode.group('episode'))
         else: