fix: key error
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful

This commit is contained in:
Hazel 2024-05-13 17:15:15 +02:00
parent d85498869d
commit 55024bd987

View File

@ -739,7 +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, timeout=5,
) )
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]))