aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/arte.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-03-24 22:38:51 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-03-24 22:38:51 +0100
commitb2799ff96d77baf614445adeac914b4277adb374 (patch)
tree499e879b79d979d2db44302c3776eb4f7d457bc0 /youtube_dl/extractor/arte.py
parentfb8ae2d43854c2e93ac5b8852deca2ec7298e03e (diff)
[arte] Fix videos.arte.tv extraction
Diffstat (limited to 'youtube_dl/extractor/arte.py')
-rw-r--r--youtube_dl/extractor/arte.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py
index 257dc1f61..2a123880e 100644
--- a/youtube_dl/extractor/arte.py
+++ b/youtube_dl/extractor/arte.py
@@ -25,6 +25,10 @@ class ArteTvIE(InfoExtractor):
IE_NAME = 'arte.tv'
def _real_extract(self, url):
+ mobj = re.match(self._VALID_URL, url)
+ video_id = mobj.group('id')
+ lang = mobj.group('lang')
+
ref_xml_url = url.replace('/videos/', '/do_delegate/videos/')
ref_xml_url = ref_xml_url.replace('.html', ',view,asPlayerXml.xml')
ref_xml_doc = self._download_xml(
@@ -37,8 +41,9 @@ class ArteTvIE(InfoExtractor):
formats = [{
'forma_id': q.attrib['quality'],
'url': q.text,
+ 'ext': 'flv',
'quality': 2 if q.attrib['quality'] == 'hd' else 1,
- } for q in config.findall('.//quality')]
+ } for q in config.findall('./urls/url')]
self._sort_formats(formats)
title = config.find('.//name').text
@@ -47,8 +52,7 @@ class ArteTvIE(InfoExtractor):
'id': video_id,
'title': title,
'thumbnail': thumbnail,
- 'url': video_url,
- 'ext': 'flv',
+ 'formats': formats,
}