Derive width from aspect ratio if available

This commit is contained in:
InvalidUsernameException
2025-04-20 19:32:11 +02:00
parent bbf362df9c
commit 59ba75dbfe
2 changed files with 22 additions and 12 deletions
+2 -1
View File
@@ -98,7 +98,8 @@ class DreiSatIE(ZDFBaseIE):
('http://zdf.de/rels/streams/ptmd', 'http://zdf.de/rels/streams/ptmd-template'),
{str}, any, {require('ptmd path')}))
ptmd_url = self._expand_ptmd_template(player_url, ptmd_path)
info = self._extract_ptmd(ptmd_url, video_id, api_token)
aspect_ratio = self._parse_aspect_ratio(video_target.get('aspectRatio'))
info = self._extract_ptmd(ptmd_url, video_id, api_token, aspect_ratio)
return merge_dicts(info, {
**traverse_obj(content, {