1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-28 21:22:13 +00:00

[crunchyroll] extract playlist entries ids

This commit is contained in:
Remita Amine 2017-02-23 11:54:43 +01:00
parent 30eaa3a702
commit 9e03aa75c7

View file

@ -534,11 +534,11 @@ class CrunchyrollShowPlaylistIE(CrunchyrollBaseIE):
r'(?s)<h1[^>]*>\s*<span itemprop="name">(.*?)</span>', r'(?s)<h1[^>]*>\s*<span itemprop="name">(.*?)</span>',
webpage, 'title') webpage, 'title')
episode_paths = re.findall( episode_paths = re.findall(
r'(?s)<li id="showview_videos_media_[0-9]+"[^>]+>.*?<a href="([^"]+)"', r'(?s)<li id="showview_videos_media_(\d+)"[^>]+>.*?<a href="([^"]+)"',
webpage) webpage)
entries = [ entries = [
self.url_result('http://www.crunchyroll.com' + ep, 'Crunchyroll') self.url_result('http://www.crunchyroll.com' + ep, 'Crunchyroll', ep_id)
for ep in episode_paths for ep_id, ep in episode_paths
] ]
entries.reverse() entries.reverse()