Skip to content

A feature-rich command-line audio/video downloader

[arte] Manually set the rtmp play_path (fix #3198)

Jaime Marquínez Ferrándiz459af43494bc
diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py
index b42102f3d1..9591bad8a6 100644
--- a/youtube_dl/extractor/arte.py
+++ b/youtube_dl/extractor/arte.py
@@ -39,7 +39,10 @@ class ArteTvIE(InfoExtractor):
formats = [{
'forma_id': q.attrib['quality'],
- 'url': q.text,
+ # The playpath starts at 'mp4:', if we don't manually
+ # split the url, rtmpdump will incorrectly parse them
+ 'url': q.text.split('mp4:', 1)[0],
+ 'play_path': 'mp4:' + q.text.split('mp4:', 1)[1],
'ext': 'flv',
'quality': 2 if q.attrib['quality'] == 'hd' else 1,
} for q in config.findall('./urls/url')]