[crunchyroll:playlist] Fix and relax title extraction (closes #21291, closes #21443)

This commit is contained in:
Sergey M․ 2019-06-22 00:07:26 +07:00
parent 9842d29d66
commit 4681441d2f
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -661,9 +661,8 @@ def _real_extract(self, url):
webpage = self._download_webpage( webpage = self._download_webpage(
self._add_skip_wall(url), show_id, self._add_skip_wall(url), show_id,
headers=self.geo_verification_headers()) headers=self.geo_verification_headers())
title = self._html_search_regex( title = self._html_search_meta('name', webpage, default=None)
r'(?s)<h1[^>]*>\s*<span itemprop="name">(.*?)</span>',
webpage, 'title')
episode_paths = re.findall( episode_paths = re.findall(
r'(?s)<li id="showview_videos_media_(\d+)"[^>]+>.*?<a href="([^"]+)"', r'(?s)<li id="showview_videos_media_(\d+)"[^>]+>.*?<a href="([^"]+)"',
webpage) webpage)