Apply suggestions from code review

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
sepro
2025-04-06 20:01:53 +02:00
committed by GitHub
co-authored by bashonly
parent ea9a23c8bd
commit dabd4a5576
+3 -2
View File
@@ -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},