mirror of
https://github.com/l1ving/youtube-dl
synced 2024-12-21 17:32:53 +08:00
[rtlnl] Update 720p PG_URL_TEMPLATE
- Fixed the format_id for the 720p progressive videostream and added the video's resolution. - The adaptive videostreams have the m3u8-extension, so I removed the confusing mp4-extension in order to make a better distinction between the these and the progressive videostreams.
This commit is contained in:
parent
65a3bfb379
commit
5556047465
@ -94,19 +94,30 @@ class RtlNlIE(InfoExtractor):
|
||||
videopath = material['videopath']
|
||||
m3u8_url = meta.get('videohost', 'http://manifest.us.rtl.nl') + videopath
|
||||
|
||||
formats = self._extract_m3u8_formats(m3u8_url, uuid, ext='mp4')
|
||||
formats = self._extract_m3u8_formats(m3u8_url, uuid)
|
||||
|
||||
video_urlpart = videopath.split('/adaptive/')[1][:-5]
|
||||
PG_URL_TEMPLATE = 'http://pg.us.rtl.nl/rtlxl/network/%s/progressive/%s.mp4'
|
||||
|
||||
formats.extend([
|
||||
{
|
||||
'url': PG_URL_TEMPLATE % ('a2m', video_urlpart),
|
||||
'format_id': 'pg-sd',
|
||||
'url': PG_URL_TEMPLATE % ('a2t', video_urlpart),
|
||||
'format_id': 'a2t',
|
||||
'width': 512,
|
||||
'height': 288,
|
||||
},
|
||||
{
|
||||
'url': PG_URL_TEMPLATE % ('a3m', video_urlpart),
|
||||
'format_id': 'pg-hd',
|
||||
'url': PG_URL_TEMPLATE % ('a3t', video_urlpart),
|
||||
'format_id': 'a3t',
|
||||
'width': 704,
|
||||
'height': 400,
|
||||
'quality': 0,
|
||||
},
|
||||
{
|
||||
'url': PG_URL_TEMPLATE % ('nettv', video_urlpart),
|
||||
'format_id': 'nettv',
|
||||
'width': 1280,
|
||||
'height': 720,
|
||||
'quality': 0,
|
||||
}
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user