projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d6a3ff
)
[Crunchyroll] Fix extraction on Python 2.6
author
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 24 Apr 2015 06:09:35 +0000
(14:09 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 24 Apr 2015 06:09:35 +0000
(14:09 +0800)
XPath with recursive children selection not supported
youtube_dl/extractor/crunchyroll.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/crunchyroll.py
b/youtube_dl/extractor/crunchyroll.py
index 6ded723c96ddad70ebf95b9fb6b73c811bcc6746..1c77df47ef346173fc11a58396c98768e5afc986 100644
(file)
--- 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,