Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FormatUtils): Throw an error if download requests fail #676

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

cjh980402
Copy link
Contributor

This is fix for catch error when response status is not 2XX.
There are throw of 'not 2XX' in 'video+audio' type already, but not in other type.
So I meet some problem when youtube give 403 status ('audio' type), I cannot catch any error and download function is stopped.
This change is for catching error in above case.

@LuanRT LuanRT changed the title Fix cannot catch error when download fix(FormatUtils): Throw an error if download requests fails Jun 28, 2024
@LuanRT LuanRT merged commit a19511d into LuanRT:main Jun 28, 2024
4 checks passed
@LuanRT LuanRT changed the title fix(FormatUtils): Throw an error if download requests fails fix(FormatUtils): Throw an error if download requests fail Jun 28, 2024
@cjh980402 cjh980402 deleted the patch-1 branch June 28, 2024 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants