Cleanup simple scraper overseers after recipe download in case any were used by the recipe

This commit is contained in:
Kovid Goyal 2023-10-16 11:24:32 +05:30
parent 62421a6424
commit 41e9ac0840
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -134,8 +134,12 @@ class RecipeInput(InputFormatPlugin):
disabled = getattr(recipe, 'recipe_disabled', None)
if disabled is not None:
raise RecipeDisabled(disabled)
ro = recipe(opts, log, self.report_progress)
ro.download()
try:
ro = recipe(opts, log, self.report_progress)
ro.download()
finally:
from calibre.scraper.simple import cleanup_overseers
cleanup_overseers()
self.recipe_object = ro
for key, val in self.recipe_object.conversion_options.items():