From: Yen Chi Hsuan Date: Sun, 31 Jan 2016 19:34:02 +0000 (+0800) Subject: [allocine] Fix for Python 2.6 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=f63757ec35bb310d05966de03dcfae72b427eac3;p=youtube-dl [allocine] Fix for Python 2.6 Python 2.6 does not support .// syntax in find(). Fortunately, the interested node is at the top level --- 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 = []