浏览代码

[Crunchyroll] Fix extraction on Python 2.6

XPath with recursive children selection not supported
Yen Chi Hsuan 10 年之前
父节点
当前提交
a9b0d4e1f4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      youtube_dl/extractor/crunchyroll.py

+ 2 - 2
youtube_dl/extractor/crunchyroll.py

@@ -263,8 +263,8 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
             streamdata = self._download_xml(
                 streamdata_req, video_id,
                 note='Downloading media info for %s' % video_format)
-            video_url = streamdata.find('.//host').text
-            video_play_path = streamdata.find('.//file').text
+            video_url = streamdata.find('./host').text
+            video_play_path = streamdata.find('./file').text
             formats.append({
                 'url': video_url,
                 'play_path': video_play_path,