Skip to content

Commit

Permalink
[extractor/zdf] Fix formats extraction
Browse files Browse the repository at this point in the history
Closes #7238, Closes #7240
Authored by: bashonly
  • Loading branch information
bashonly committed Jun 5, 2023
1 parent c2a1bdb commit ee0ed03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yt_dlp/extractor/zdf.py
Expand Up @@ -24,7 +24,7 @@

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 = {}
Expand Down Expand Up @@ -61,6 +61,9 @@ def _extract_format(self, video_id, formats, format_urls, meta):
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'):
Expand Down

0 comments on commit ee0ed03

Please sign in to comment.