aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/canvas.py
diff options
context:
space:
mode:
authorfelix <felix.von.s@posteo.de>2021-05-23 18:34:49 +0200
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-06-13 20:36:40 +0530
commitcdb19aa4c254a1e4dea942f51d22790b7c99021c (patch)
treee30bdec6cec21fa0b78e93d0c97ffbb860bba837 /yt_dlp/extractor/canvas.py
parent4d85fbbdbba79aed7b73ea54b1bdc20d078961d4 (diff)
downloadhypervideo-pre-cdb19aa4c254a1e4dea942f51d22790b7c99021c.tar.lz
hypervideo-pre-cdb19aa4c254a1e4dea942f51d22790b7c99021c.tar.xz
hypervideo-pre-cdb19aa4c254a1e4dea942f51d22790b7c99021c.zip
[downloader/mhtml] Add new downloader (#343)
This downloader is intended to be used for streams that consist of a timed sequence of stand-alone images, such as slideshows or thumbnail streams This can be used for implementing: https://github.com/ytdl-org/youtube-dl/issues/4974#issue-58006762 https://github.com/ytdl-org/youtube-dl/issues/4540#issuecomment-69574231 https://github.com/ytdl-org/youtube-dl/pull/11185#issuecomment-335554239 https://github.com/ytdl-org/youtube-dl/issues/9868 https://github.com/ytdl-org/youtube-dl/pull/14951 Authored by: fstirlitz
Diffstat (limited to 'yt_dlp/extractor/canvas.py')
-rw-r--r--yt_dlp/extractor/canvas.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/canvas.py b/yt_dlp/extractor/canvas.py
index 1b7c1d2ff..575f3d25c 100644
--- a/yt_dlp/extractor/canvas.py
+++ b/yt_dlp/extractor/canvas.py
@@ -24,7 +24,7 @@ class CanvasIE(InfoExtractor):
_VALID_URL = r'https?://mediazone\.vrt\.be/api/v1/(?P<site_id>canvas|een|ketnet|vrt(?:video|nieuws)|sporza|dako)/assets/(?P<id>[^/?#&]+)'
_TESTS = [{
'url': 'https://mediazone.vrt.be/api/v1/ketnet/assets/md-ast-4ac54990-ce66-4d00-a8ca-9eac86f4c475',
- 'md5': '68993eda72ef62386a15ea2cf3c93107',
+ 'md5': '37b2b7bb9b3dcaa05b67058dc3a714a9',
'info_dict': {
'id': 'md-ast-4ac54990-ce66-4d00-a8ca-9eac86f4c475',
'display_id': 'md-ast-4ac54990-ce66-4d00-a8ca-9eac86f4c475',
@@ -32,9 +32,9 @@ class CanvasIE(InfoExtractor):
'title': 'Nachtwacht: De Greystook',
'description': 'Nachtwacht: De Greystook',
'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 1468.04,
+ 'duration': 1468.02,
},
- 'expected_warnings': ['is not a supported codec', 'Unknown MIME type'],
+ 'expected_warnings': ['is not a supported codec'],
}, {
'url': 'https://mediazone.vrt.be/api/v1/canvas/assets/mz-ast-5e5f90b6-2d72-4c40-82c2-e134f884e93e',
'only_matching': True,