mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-11-13 22:42:58 +01:00
Merge branch 'patch-1' of https://github.com/corone17/youtube-dl into corone17-patch-1
This commit is contained in:
commit
f7c272d4fa
@ -51,7 +51,7 @@ class RtlNlIE(InfoExtractor):
|
|||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
uuid = self._match_id(url)
|
uuid = self._match_id(url)
|
||||||
info = self._download_json(
|
info = self._download_json(
|
||||||
'http://www.rtl.nl/system/s4m/vfd/version=2/uuid=%s/fmt=flash/' % uuid,
|
'http://www.rtl.nl/system/s4m/vfd/version=2/uuid=%s/fmt=adaptive/' % uuid,
|
||||||
uuid)
|
uuid)
|
||||||
|
|
||||||
material = info['material'][0]
|
material = info['material'][0]
|
||||||
@ -60,8 +60,8 @@ class RtlNlIE(InfoExtractor):
|
|||||||
description = material.get('synopsis') or info['episodes'][0]['synopsis']
|
description = material.get('synopsis') or info['episodes'][0]['synopsis']
|
||||||
|
|
||||||
# Use unencrypted m3u8 streams (See https://github.com/rg3/youtube-dl/issues/4118)
|
# Use unencrypted m3u8 streams (See https://github.com/rg3/youtube-dl/issues/4118)
|
||||||
videopath = material['videopath'].replace('.f4m', '.m3u8')
|
videopath = material['videopath'].replace('adaptive', 'flash')
|
||||||
m3u8_url = 'http://manifest.us.rtl.nl' + videopath
|
m3u8_url = info['meta']['videohost'] + videopath
|
||||||
|
|
||||||
formats = self._extract_m3u8_formats(m3u8_url, uuid, ext='mp4')
|
formats = self._extract_m3u8_formats(m3u8_url, uuid, ext='mp4')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user