Skip to content

Commit

Permalink
[crunchyroll:playlist] Fix and relax title extraction (closes #21291, c…
Browse files Browse the repository at this point in the history
…loses #21443)
  • Loading branch information
dstftw committed Jun 21, 2019
1 parent 9842d29 commit 4681441
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions youtube_dl/extractor/crunchyroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,8 @@ def _real_extract(self, url):
webpage = self._download_webpage(
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>',
webpage, 'title')
title = self._html_search_meta('name', webpage, default=None)

episode_paths = re.findall(
r'(?s)<li id="showview_videos_media_(\d+)"[^>]+>.*?<a href="([^"]+)"',
webpage)
Expand Down

0 comments on commit 4681441

Please sign in to comment.