mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
[rtlnl] Improve
This commit is contained in:
parent
f7c272d4fa
commit
43232d5c14
1 changed files with 5 additions and 3 deletions
|
@ -59,9 +59,11 @@ def _real_extract(self, url):
|
||||||
subtitle = material['title'] or info['episodes'][0]['name']
|
subtitle = material['title'] or info['episodes'][0]['name']
|
||||||
description = material.get('synopsis') or info['episodes'][0]['synopsis']
|
description = material.get('synopsis') or info['episodes'][0]['synopsis']
|
||||||
|
|
||||||
|
meta = info.get('meta', {})
|
||||||
|
|
||||||
# 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('adaptive', 'flash')
|
videopath = material['videopath'].replace('/adaptive/', '/flash/')
|
||||||
m3u8_url = info['meta']['videohost'] + 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, ext='mp4')
|
||||||
|
|
||||||
|
@ -82,7 +84,7 @@ def _real_extract(self, url):
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
thumbnails = []
|
thumbnails = []
|
||||||
meta = info.get('meta', {})
|
|
||||||
for p in ('poster_base_url', '"thumb_base_url"'):
|
for p in ('poster_base_url', '"thumb_base_url"'):
|
||||||
if not meta.get(p):
|
if not meta.get(p):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue