aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-02-01 03:34:02 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-02-01 03:34:02 +0800
commitf63757ec35bb310d05966de03dcfae72b427eac3 (patch)
tree6bcde1f840c0035a3f604b439be21bf1bcc9f8d0
parent7a0ed06909f8951f8be3049ab089d61ead626158 (diff)
[allocine] Fix for Python 2.6
Python 2.6 does not support .// syntax in find(). Fortunately, the interested node is at the top level
-rw-r--r--youtube_dl/extractor/allocine.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/allocine.py b/youtube_dl/extractor/allocine.py
index f94da1a05..f6cd3a85f 100644
--- 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 = []