浏览代码

[crunchyroll] extract playlist entries ids

Remita Amine 8 年之前
父节点
当前提交
9e03aa75c7
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      youtube_dl/extractor/crunchyroll.py

+ 3 - 3
youtube_dl/extractor/crunchyroll.py

@@ -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')
-            for ep in episode_paths
+            self.url_result('http://www.crunchyroll.com' + ep, 'Crunchyroll', ep_id)
+            for ep_id, ep in episode_paths
         ]
         ]
         entries.reverse()
         entries.reverse()