Add sanity check for multiple new episodes#172
Open
Manitary wants to merge 2 commits intor-anime:masterfrom
Open
Add sanity check for multiple new episodes#172Manitary wants to merge 2 commits intor-anime:masterfrom
Manitary wants to merge 2 commits intor-anime:masterfrom
Conversation
Set a max number of episode threads to post for a single show If the value is surpassed, don't post any thread for that show batch and log a warning The value can be set in the config file, and overridden with ``-e``
Contributor
Author
|
Added an additional check using latest episode posted + remote offset. Currently it is relevant only for HIDIVE (see #171 ), but it is better to have anyway for future-proofing. |
Use the latest episode and the remote offset to calculate if too many episodes were pulled. This prevents the script from not processing a valid episode if too many episodes are pulled due to missing date information.
47bb24f to
c4dfc2c
Compare
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.
Add a max number of episode threads to post for a single show in one run. If the value is surpassed, don't post any thread for that show batch and log a warning instead.
The value can be set in the config file, and overridden with the
-eoption.The check is done in the main function of the episode module, so it does not affect e.g. manual batch posting.
Resolve #136