mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-14 23:13:59 +03:00
Apply suggestions from code review
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
@@ -45,10 +45,11 @@ class IvooxIE(InfoExtractor):
|
|||||||
|
|
||||||
download_paths = {
|
download_paths = {
|
||||||
traverse_obj(direct_download, ('data', 'downloadUrl', {str})),
|
traverse_obj(direct_download, ('data', 'downloadUrl', {str})),
|
||||||
*traverse_obj(data, (('downloadUrl', 'mediaUrl'), {str}, all))}
|
*traverse_obj(data, (('downloadUrl', 'mediaUrl'), {str})),
|
||||||
|
}
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for path in traverse_obj(download_paths, (..., {str})):
|
for path in download_paths:
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': urljoin('https://ivoox.com', path),
|
'url': urljoin('https://ivoox.com', path),
|
||||||
'http_headers': {'Referer': url},
|
'http_headers': {'Referer': url},
|
||||||
|
|||||||
Reference in New Issue
Block a user