aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-24 22:34:03 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-24 22:34:03 +0100
commit7a249480b47767dcd5b872563fd715afd01f777a (patch)
treeea6fb916864bdc48c24e9de91826bfb36151ab78
parentf605128d131b3084a6f2e098df1561892cecfc3e (diff)
[arte] Fix video.arte.tv extractor
-rw-r--r--youtube_dl/extractor/arte.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py
index 257dc1f61..9ca6c71e9 100644
--- a/youtube_dl/extractor/arte.py
+++ b/youtube_dl/extractor/arte.py
@@ -2,7 +2,6 @@
from __future__ import unicode_literals
import re
-import json
from .common import InfoExtractor
from ..utils import (
@@ -25,6 +24,10 @@ class ArteTvIE(InfoExtractor):
IE_NAME = 'arte.tv'
def _real_extract(self, url):
+ mobj = re.match(self._VALID_URL, url)
+ lang = mobj.group('lang')
+ video_id = mobj.group('id')
+
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(
@@ -47,7 +50,7 @@ class ArteTvIE(InfoExtractor):
'id': video_id,
'title': title,
'thumbnail': thumbnail,
- 'url': video_url,
+ 'formats': formats,
'ext': 'flv',
}