From f63757ec35bb310d05966de03dcfae72b427eac3 Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Mon, 1 Feb 2016 03:34:02 +0800 Subject: [PATCH] [allocine] Fix for Python 2.6 Python 2.6 does not support .// syntax in find(). Fortunately, the interested node is at the top level --- youtube_dl/extractor/allocine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [] -- 2.22.2