diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-02-01 03:34:02 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-02-01 03:34:02 +0800 |
commit | f63757ec35bb310d05966de03dcfae72b427eac3 (patch) | |
tree | 6bcde1f840c0035a3f604b439be21bf1bcc9f8d0 /youtube_dl/extractor | |
parent | 7a0ed06909f8951f8be3049ab089d61ead626158 (diff) |
[allocine] Fix for Python 2.6
Python 2.6 does not support .// syntax in find(). Fortunately, the
interested node is at the top level
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/allocine.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 = [] |