html plugin: add stop_when_404 increment option#3240
html plugin: add stop_when_404 increment option#3240paranoidi merged 1 commit intoFlexget:developfrom
Conversation
Some sites will return 404 at pagination stop. When 'stop_when_404' is set to 'false', the HTTPError thrown by requests will bubble up (default and existing behaviour) - aborting the task. If it is set to 'true', the HTTPError will be caught and iteration will halt as if an empty page was returned and 'stop_when_empty' was set to 'true'.
|
Hmm, would it make more sense to include this behavior in |
I guess that depends in part on how much you care about getting feedback on unexpected 404s. It could be that remote changes break your config and since |
|
This PR is stale because it has been open 150 days with no activity. Remove stale label or comment or this will be closed in 60 days. |
|
+1 for this feature |
Motivation for changes:
Some sites will return 404 at pagination stop. Currently that causes the task to abort due to an uncaught
HTTPError.Detailed changes:
When
stop_when_404is set tofalse, theHTTPErrorthrown byrequestswill bubble up (default and existing behaviour) - aborting the task. If it is set totrue, theHTTPErrorwill be caught and iteration will halt as if an empty page was returned andstop_when_emptywas set totrue.Addressed issues:
N/A
Implemented feature requests:
N/A
Config usage if relevant (new plugin or updated schema):
Log and/or tests output (preferably both):