mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-14 23:13:59 +03:00
minor formatting changes
This commit is contained in:
@@ -41,9 +41,7 @@ class IvooxIE(InfoExtractor):
|
|||||||
|
|
||||||
direct_download = self._download_json(
|
direct_download = self._download_json(
|
||||||
f'https://vcore-web.ivoox.com/v1/public/audios/{media_id}/download-url', media_id, fatal=False,
|
f'https://vcore-web.ivoox.com/v1/public/audios/{media_id}/download-url', media_id, fatal=False,
|
||||||
note='Fetching direct download link', headers={
|
note='Fetching direct download link', headers={'Referer': url})
|
||||||
'Referer': url,
|
|
||||||
})
|
|
||||||
|
|
||||||
download_paths = {
|
download_paths = {
|
||||||
traverse_obj(direct_download, ('data', 'downloadUrl', {str})),
|
traverse_obj(direct_download, ('data', 'downloadUrl', {str})),
|
||||||
@@ -53,9 +51,7 @@ class IvooxIE(InfoExtractor):
|
|||||||
for path in traverse_obj(download_paths, (..., {str})):
|
for path in traverse_obj(download_paths, (..., {str})):
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': urljoin('https://ivoox.com', path),
|
'url': urljoin('https://ivoox.com', path),
|
||||||
'http_headers': {
|
'http_headers': {'Referer': url},
|
||||||
'Referer': url,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user