Browse Source

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

rtmpdump doesn't parse it right
totalwebcasting
Jaime Marquínez Ferrándiz 11 years ago
parent
commit
459af43494
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      youtube_dl/extractor/arte.py

+ 4
- 1
youtube_dl/extractor/arte.py View File

@ -39,7 +39,10 @@ class ArteTvIE(InfoExtractor):
formats = [{ formats = [{
'forma_id': q.attrib['quality'], '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', 'ext': 'flv',
'quality': 2 if q.attrib['quality'] == 'hd' else 1, 'quality': 2 if q.attrib['quality'] == 'hd' else 1,
} for q in config.findall('./urls/url')] } for q in config.findall('./urls/url')]


Loading…
Cancel
Save