diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-07-11 16:12:16 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-07-11 16:12:16 +0200 |
commit | df50a41289c4c36ca4ffcca85c97fae6244a0322 (patch) | |
tree | 1fb48ff9ba35c5ac5a9ce9b14543813f2be0f5a7 /youtube_dl | |
parent | 59ae56fad5dbbc7178024e3e4a539f3cc6bc60d5 (diff) |
[arte] Fix on 2.6
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/arte.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py index e7a91a1eb..993e30f7a 100644 --- a/youtube_dl/extractor/arte.py +++ b/youtube_dl/extractor/arte.py @@ -5,6 +5,7 @@ import xml.etree.ElementTree from .common import InfoExtractor from ..utils import ( ExtractorError, + find_xpath_attr, unified_strdate, ) @@ -119,7 +120,7 @@ class ArteTvIE(InfoExtractor): ref_xml_url = ref_xml_url.replace('.html', ',view,asPlayerXml.xml') ref_xml = self._download_webpage(ref_xml_url, video_id, note=u'Downloading metadata') ref_xml_doc = xml.etree.ElementTree.fromstring(ref_xml) - config_node = ref_xml_doc.find('.//video[@lang="%s"]' % lang) + config_node = find_xpath_attr(ref_xml_doc, './/video', 'lang', lang) config_xml_url = config_node.attrib['ref'] config_xml = self._download_webpage(config_xml_url, video_id, note=u'Downloading configuration') |