mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Cleanup simple scraper overseers after recipe download in case any were used by the recipe
This commit is contained in:
parent
62421a6424
commit
41e9ac0840
@ -134,8 +134,12 @@ class RecipeInput(InputFormatPlugin):
|
|||||||
disabled = getattr(recipe, 'recipe_disabled', None)
|
disabled = getattr(recipe, 'recipe_disabled', None)
|
||||||
if disabled is not None:
|
if disabled is not None:
|
||||||
raise RecipeDisabled(disabled)
|
raise RecipeDisabled(disabled)
|
||||||
ro = recipe(opts, log, self.report_progress)
|
try:
|
||||||
ro.download()
|
ro = recipe(opts, log, self.report_progress)
|
||||||
|
ro.download()
|
||||||
|
finally:
|
||||||
|
from calibre.scraper.simple import cleanup_overseers
|
||||||
|
cleanup_overseers()
|
||||||
self.recipe_object = ro
|
self.recipe_object = ro
|
||||||
|
|
||||||
for key, val in self.recipe_object.conversion_options.items():
|
for key, val in self.recipe_object.conversion_options.items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user