commit f63757ec35bb310d05966de03dcfae72b427eac3
parent 7a0ed06909f8951f8be3049ab089d61ead626158
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date: Mon, 1 Feb 2016 03:34:02 +0800
[allocine] Fix for Python 2.6
Python 2.6 does not support .// syntax in find(). Fortunately, the
interested node is at the top level
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 = []