fix: timeout for yt music stream
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
788103a68e
commit
c3350b016d
@ -739,6 +739,7 @@ class YoutubeMusic(SuperYouTube):
|
|||||||
headers=media.get("headers", {}),
|
headers=media.get("headers", {}),
|
||||||
chunk_size=main_settings["chunk_size"],
|
chunk_size=main_settings["chunk_size"],
|
||||||
method="GET",
|
method="GET",
|
||||||
|
timeout=main_settings["timeout"] * 3,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
result = DownloadResult(error_message=str(media.get("error") or self.not_download[source.hash_url]))
|
result = DownloadResult(error_message=str(media.get("error") or self.not_download[source.hash_url]))
|
||||||
|
Loading…
Reference in New Issue
Block a user