]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[allocine] Fix for Python 2.6
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 31 Jan 2016 19:34:02 +0000 (03:34 +0800)
committerYen 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

index f94da1a05c13f706e95373aa699f7e1d7288627f..f6cd3a85fda31fe3138bfad8208fda4cdf986aae 100644 (file)
@@ -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 = []