mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-29 03:55:53 +00:00
refactor _extract_ptmd_urls
Authored by: bashonly
This commit is contained in:
parent
f7d605a8f7
commit
3cafe45074
@ -80,13 +80,7 @@ class ZDFBaseIE(InfoExtractor):
|
|||||||
return urljoin(api_base_url, template.replace('{playerId}', 'android_native_6'))
|
return urljoin(api_base_url, template.replace('{playerId}', 'android_native_6'))
|
||||||
|
|
||||||
def _extract_ptmd_urls(self, ptmd_urls, video_id, api_token=None, aspect_ratio=None):
|
def _extract_ptmd_urls(self, ptmd_urls, video_id, api_token=None, aspect_ratio=None):
|
||||||
ptmd_urls = variadic(ptmd_urls)
|
ptmd_info = [{'url': url, 'dgs': False} for url in variadic(ptmd_urls)]
|
||||||
ptmd_info = []
|
|
||||||
for url in ptmd_urls:
|
|
||||||
ptmd_info.append({
|
|
||||||
'url': url,
|
|
||||||
'dgs': False,
|
|
||||||
})
|
|
||||||
return self._extract_ptmd(ptmd_info, video_id, api_token, aspect_ratio)
|
return self._extract_ptmd(ptmd_info, video_id, api_token, aspect_ratio)
|
||||||
|
|
||||||
def _extract_ptmd(self, ptmd_info, video_id, api_token=None, aspect_ratio=None):
|
def _extract_ptmd(self, ptmd_info, video_id, api_token=None, aspect_ratio=None):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user