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

Fix rate limiting cms error #189

Merged
merged 1 commit into from
Apr 8, 2023
Merged

Conversation

bytedream
Copy link
Member

This PR fixes a error Crunchyroll throws if too many streams are requested in a short time period. The error states content.get_video_streams_v2.cms_service_error and after the error occurs no stream can be downloaded or watched, even on the Crunchyroll website, for around 30 minutes (to my observations).

Before this PR, all streams got requested and the download only began if every stream were fetched. This could result in hundreds of request in a very short time period (depending on the series which should be downloaded) which then triggers the described error.
With this change, streams are only requested before they're actually required. This resolves the issue and reduces the time the cli needs to start the first download.

@bytedream bytedream linked an issue Apr 8, 2023 that may be closed by this pull request
@bytedream bytedream merged commit 8e972ab into master Apr 8, 2023
@bytedream bytedream deleted the fix/rate-limiting-cms-error branch April 8, 2023 13:08
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.

cms_service_error After downloading a series
1 participant