mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Call initialize() on the patches
This commit is contained in:
parent
8433f1d7a8
commit
1b1b92e7df
@ -625,6 +625,9 @@ def patch_metadata_plugins(possibly_updated_plugins):
|
|||||||
if pup is not None:
|
if pup is not None:
|
||||||
if pup.version > plugin.version and pup.minimum_calibre_version <= numeric_version:
|
if pup.version > plugin.version and pup.minimum_calibre_version <= numeric_version:
|
||||||
patches[i] = pup(None)
|
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():
|
for i, pup in patches.iteritems():
|
||||||
_initialized_plugins[i] = pup
|
_initialized_plugins[i] = pup
|
||||||
# }}}
|
# }}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user