diff options
author | bashonly <bashonly@bashonly.com> | 2023-06-05 10:40:48 -0500 |
---|---|---|
committer | bashonly <bashonly@bashonly.com> | 2023-06-05 10:40:48 -0500 |
commit | ee0ed0338df328cd986f97315c8162b5a151476d (patch) | |
tree | fd29a23f22821260640596ed4838adf2a6201cc7 | |
parent | c2a1bdb00931969193f2a31ea27b9c66a07aaec2 (diff) | |
download | hypervideo-pre-ee0ed0338df328cd986f97315c8162b5a151476d.tar.lz hypervideo-pre-ee0ed0338df328cd986f97315c8162b5a151476d.tar.xz hypervideo-pre-ee0ed0338df328cd986f97315c8162b5a151476d.zip |
[extractor/zdf] Fix formats extraction
Closes #7238, Closes #7240
Authored by: bashonly
-rw-r--r-- | yt_dlp/extractor/zdf.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/zdf.py b/yt_dlp/extractor/zdf.py index c863c46ed..c04d51b7e 100644 --- a/yt_dlp/extractor/zdf.py +++ b/yt_dlp/extractor/zdf.py @@ -24,7 +24,7 @@ from ..utils import ( class ZDFBaseIE(InfoExtractor): _GEO_COUNTRIES = ['DE'] - _QUALITIES = ('auto', 'low', 'med', 'high', 'veryhigh', 'hd', 'uhd') + _QUALITIES = ('auto', 'low', 'med', 'high', 'veryhigh', 'hd', 'fhd', 'uhd') def _call_api(self, url, video_id, item, api_token=None, referrer=None): headers = {} @@ -61,6 +61,9 @@ class ZDFBaseIE(InfoExtractor): elif mime_type == 'application/f4m+xml' or ext == 'f4m': new_formats = self._extract_f4m_formats( update_url_query(format_url, {'hdcore': '3.7.0'}), video_id, f4m_id='hds', fatal=False) + elif ext == 'mpd': + new_formats = self._extract_mpd_formats( + format_url, video_id, mpd_id='dash', fatal=False) else: f = parse_codecs(meta.get('mimeCodec')) if not f and meta.get('type'): |