mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-13 22:44:32 +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 = {
|
||||
traverse_obj(direct_download, ('data', 'downloadUrl', {str})),
|
||||
*traverse_obj(data, (('downloadUrl', 'mediaUrl'), {str}, all))}
|
||||
*traverse_obj(data, (('downloadUrl', 'mediaUrl'), {str})),
|
||||
}
|
||||
|
||||
formats = []
|
||||
for path in traverse_obj(download_paths, (..., {str})):
|
||||
for path in download_paths:
|
||||
formats.append({
|
||||
'url': urljoin('https://ivoox.com', path),
|
||||
'http_headers': {'Referer': url},
|
||||
|
||||
Reference in New Issue
Block a user