diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-07-05 19:01:07 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-07-05 19:01:07 +0600 |
commit | 43232d5c143b1025671f70ff34f5c0f28ec56847 (patch) | |
tree | 57b34ef7255c6931901f49d69a6c2928d7ab1da2 /youtube_dl/extractor/rtlnl.py | |
parent | f7c272d4fa9cdb6212e8716e813f5d55a16137a2 (diff) |
[rtlnl] Improve
Diffstat (limited to 'youtube_dl/extractor/rtlnl.py')
-rw-r--r-- | youtube_dl/extractor/rtlnl.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/youtube_dl/extractor/rtlnl.py b/youtube_dl/extractor/rtlnl.py index e708e0093..d94861325 100644 --- a/youtube_dl/extractor/rtlnl.py +++ b/youtube_dl/extractor/rtlnl.py @@ -59,9 +59,11 @@ class RtlNlIE(InfoExtractor): subtitle = material['title'] or info['episodes'][0]['name'] 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) - videopath = material['videopath'].replace('adaptive', 'flash') - m3u8_url = info['meta']['videohost'] + videopath + videopath = material['videopath'].replace('/adaptive/', '/flash/') + m3u8_url = meta.get('videohost', 'http://manifest.us.rtl.nl') + videopath formats = self._extract_m3u8_formats(m3u8_url, uuid, ext='mp4') @@ -82,7 +84,7 @@ class RtlNlIE(InfoExtractor): self._sort_formats(formats) thumbnails = [] - meta = info.get('meta', {}) + for p in ('poster_base_url', '"thumb_base_url"'): if not meta.get(p): continue |