浏览代码

[allocine] Fix for Python 2.6

Python 2.6 does not support .// syntax in find(). Fortunately, the
interested node is at the top level
Yen Chi Hsuan 9 年之前
父节点
当前提交
f63757ec35
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/allocine.py

+ 1 - 1
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)
         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'])
         quality = qualities(['ld', 'md', 'hd'])
 
 
         formats = []
         formats = []