Fix and Upgrade anidb_list.py#2220
Merged
paranoidi merged 10 commits intoFlexget:developfrom Oct 15, 2018
Merged
Conversation
added 4 commits
October 1, 2018 21:12
Add OVA type Rearrange modes in index order for more simple usage Add user_agent property just in case AniDB blocks this one Move generation of the URL to its own private method If there is more than one wishlist page, it will now fetch all of them
cvium
requested changes
Oct 11, 2018
cvium
reviewed
Oct 12, 2018
cvium
reviewed
Oct 12, 2018
paranoidi
requested changes
Oct 13, 2018
Member
|
Very nicely done, small corrections and we can merge this for sure! |
cvium
reviewed
Oct 15, 2018
| task_header = { | ||
| 'User-Agent': self.default_user_agent | ||
| } | ||
| task_headers = task.requests.headers |
Contributor
There was a problem hiding this comment.
I think it would be best to clone task.requests.headers so it doesn't set the user agent for the entire task. I should've mentioned this sooner, sorry.
Member
|
Thank you for your contributions! |
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:
The AniDB list plugin was simply broken. You would get a 403 because of the user-agent.
Detailed changes:
Addressed issues:
Implemented feature requests:
Config usage if relevant (new plugin or updated schema):
Log and/or tests output (preferably both):
Extra Thoughts:
This plugin should probably be renamed to "anidb_wishlist", as that is what it is fetching. The AniDB list (called "mylist") is the list of shows you've seen or reported having copies of.