Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

fix: Added KeyError exception catching #11

Merged
merged 1 commit into from
Apr 22, 2023
Merged

fix: Added KeyError exception catching #11

merged 1 commit into from
Apr 22, 2023

Conversation

rin-gil
Copy link
Owner

@rin-gil rin-gil commented Apr 22, 2023

When trying to retrieve streaming data in a video, a KeyError : 'streamingData' exception will often occur, for example, when trying to download a video with an age restriction.

However, when downloading
unrestricted videos, this error also often occurs.

Added a decorator
that restarts the function that downloads the video up to 10 times, which is enough to download videos for which there are no restrictions

When trying to retrieve streaming data in a video, a KeyError :
'streamingData' exception will often occur, for example, when trying to
download a video with an age restriction.

However, when downloading
unrestricted videos, this error also often occurs.

Added a decorator
that restarts the function that downloads the video up to 10 times,
which is enough to download videos for which there are no restrictions

Signed-off-by: rin-gil <91410075+rin-gil@users.noreply.github.com>
@rin-gil rin-gil merged commit 3954151 into master Apr 22, 2023
@rin-gil rin-gil deleted the develop branch April 22, 2023 17:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant