aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-04-24 14:09:35 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-04-24 14:09:35 +0800
commita9b0d4e1f4936d93f277f098495eb4d5b770056f (patch)
tree0a8bf03416da56fc78e45b7cf48de089550c9250 /youtube_dl
parent4d6a3ff411d494e2f3168bca0331317718b5d9a9 (diff)
[Crunchyroll] Fix extraction on Python 2.6
XPath with recursive children selection not supported
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/crunchyroll.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.py
index 6ded723c9..1c77df47e 100644
--- a/youtube_dl/extractor/crunchyroll.py
+++ b/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,