1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-26 16:49:53 +08:00

crunchyroll: fix title extraction regexp

Fixes #21291
This commit is contained in:
Alex Dunn
2019-06-18 11:04:29 -07:00
Unverified
parent 7c24a58bdb
commit bbe3ec8edd
+1 -1
View File
@@ -662,7 +662,7 @@ class CrunchyrollShowPlaylistIE(CrunchyrollBaseIE):
self._add_skip_wall(url), show_id,
headers=self.geo_verification_headers())
title = self._html_search_regex(
r'(?s)<h1[^>]*>\s*<span itemprop="name">(.*?)</span>',
r'(?s)<meta content="(.*?)" itemprop="name">',
webpage, 'title')
episode_paths = re.findall(
r'(?s)<li id="showview_videos_media_(\d+)"[^>]+>.*?<a href="([^"]+)"',