projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a0ed06
)
[allocine] Fix for Python 2.6
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 31 Jan 2016 19:34:02 +0000
(
03:34
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 31 Jan 2016 19:34:02 +0000
(
03:34
+0800)
Python 2.6 does not support .// syntax in find(). Fortunately, the
interested node is at the top level
youtube_dl/extractor/allocine.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/allocine.py
b/youtube_dl/extractor/allocine.py
index f94da1a05c13f706e95373aa699f7e1d7288627f..f6cd3a85fda31fe3138bfad8208fda4cdf986aae 100644
(file)
--- a/
youtube_dl/extractor/allocine.py
+++ b/
youtube_dl/extractor/allocine.py
@@
-71,7
+71,7
@@
class AllocineIE(InfoExtractor):
xml = self._download_xml('http://www.allocine.fr/ws/AcVisiondataV4.ashx?media=%s' % video_id, display_id)
- video = xml.find('./
/
AcVisionVideo').attrib
+ video = xml.find('./AcVisionVideo').attrib
quality = qualities(['ld', 'md', 'hd'])
formats = []