Call initialize() on the patches

This commit is contained in:
Kovid Goyal 2017-03-18 09:08:26 +05:30
parent 8433f1d7a8
commit 1b1b92e7df

View File

@ -625,6 +625,9 @@ def patch_metadata_plugins(possibly_updated_plugins):
if pup is not None:
if pup.version > plugin.version and pup.minimum_calibre_version <= numeric_version:
patches[i] = pup(None)
# Metadata source plugins dont use initialize() but that
# might change in the future, so be safe.
patches[i].initialize()
for i, pup in patches.iteritems():
_initialized_plugins[i] = pup
# }}}