Add some delays when querying NPO.nl#1739
Merged
liiight merged 1 commit intoFlexget:developfrom Mar 17, 2017
mfonville:requests
Merged
Add some delays when querying NPO.nl#1739liiight merged 1 commit intoFlexget:developfrom mfonville:requests
liiight merged 1 commit intoFlexget:developfrom
mfonville:requests
Conversation
Member
|
We have a specific implementation for that: https://github.com/Flexget/Flexget/blob/develop/flexget/plugins/notifiers/join.py#L17 Also, why two prs for the same plugin? There's no reason not to do them all in one pr |
Contributor
Author
|
The 2 PRs because two separate issues and I was not sure if this one was done the right way (and apparently I did not); I will look at adding that specific trick |
Contributor
Author
|
I updated now this PR with the suggested manner of @liiight to tackle this issue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation for changes:
NPO.nl blocks if too many requests directly after one another, probably to prevent DDoS attacks.
This spawned errors during the execution of
npo_watchlistif having several favorite seriesDetailed changes:
Addressed issues:
Prevents that Flexget randomly gives
during the execution of the
npo_watchlistplugin