summary refs log tree commit diff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-02-01 05:32:28 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-02-01 05:32:28 +0800
commitdc4fe5c6d713ac09cd35f8b8dbfbe46a67a67f10 (patch)
treec6fadc1e82563c4956b8d16d4d418077a64e182b
parent566bda51f2d943d58fbe37d88ea0fceb8ddefea8 (diff)
downloadyoutube-dl-dc4fe5c6d713ac09cd35f8b8dbfbe46a67a67f10.tar.gz
youtube-dl-dc4fe5c6d713ac09cd35f8b8dbfbe46a67a67f10.tar.xz
youtube-dl-dc4fe5c6d713ac09cd35f8b8dbfbe46a67a67f10.zip
[allocine] Use xpath_element
-rw-r--r--youtube_dl/extractor/allocine.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/allocine.py b/youtube_dl/extractor/allocine.py
index f6cd3a85f..190bc2cc8 100644
--- a/youtube_dl/extractor/allocine.py
+++ b/youtube_dl/extractor/allocine.py
@@ -9,6 +9,7 @@ from ..compat import compat_str
 from ..utils import (
     qualities,
     unescapeHTML,
+    xpath_element,
 )
 
 
@@ -71,7 +72,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 = xpath_element(xml, './/AcVisionVideo').attrib
         quality = qualities(['ld', 'md', 'hd'])
 
         formats = []