Skip to content

Comments

Add sanity check for multiple new episodes#172

Open
Manitary wants to merge 2 commits intor-anime:masterfrom
Manitary:136-sanity-check-too-many-episodes
Open

Add sanity check for multiple new episodes#172
Manitary wants to merge 2 commits intor-anime:masterfrom
Manitary:136-sanity-check-too-many-episodes

Conversation

@Manitary
Copy link
Contributor

@Manitary Manitary commented Jul 8, 2023

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 -e option.

The check is done in the main function of the episode module, so it does not affect e.g. manual batch posting.

Resolve #136

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``
@Manitary
Copy link
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.
@Manitary Manitary force-pushed the 136-sanity-check-too-many-episodes branch from 47bb24f to c4dfc2c Compare January 19, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add sanity check for multiple new episodes

1 participant