Skip to content

Commit

Permalink
[crunchyroll:playlist] Fix and relax title extraction (closes #21291,…
Browse files Browse the repository at this point in the history
… closes #21443)
  • Loading branch information
dstftw authored and meunierd committed Feb 13, 2020
1 parent ead4415 commit ba446d4
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 ba446d4

Please sign in to comment.