During develop LubimyCzytac [Metadata Source Plugin] in config I allow to download number of pages and save to comment and/or as identifier "lcpages" (abbreviation from "LubimyCzytac pages").
Now I prepared auxiliary plugin named "LCpages" [GUI plugin].
Plugin move number of pages value from "lcpages" identifier to custom column (for example "#pages"). This option works as intended and rapidly.
Code:
I would like to start fetch/download metadata from LubimyCzytac source (by LubimyCzytac plugin of course),
and next run standard primary function (move value from identifier to custom column).
I can call "Edit Metadata" window:
I can call "LubimyCzytac" config:
Unfortunately, I can not call the fetch/download metadata by using LubimyCzytac plugin. I've read various threads about calling plugins from other plugins. I was trying for many hours - without success.
Is possible call fetch/download metadata from GUI plugin and next run other functions?
I would also like to check whether LubimyCzytac is enabled as a source of metadata.
Does my concept make sense?
PS. Count Pages plugin supporting LubimyCzytac (thx davidfor) is OK, but I want to test my own solution only for speed fill custom column once downloaded value.
Now I prepared auxiliary plugin named "LCpages" [GUI plugin].
Plugin move number of pages value from "lcpages" identifier to custom column (for example "#pages"). This option works as intended and rapidly.
Code:
Spoiler:
I would like to start fetch/download metadata from LubimyCzytac source (by LubimyCzytac plugin of course),
and next run standard primary function (move value from identifier to custom column).
I can call "Edit Metadata" window:
Code:
def edycjametadanych(self):
from calibre.library import db
from calibre.gui2.metadata.single import edit_metadata
db = db()
row_list = list(range(len(db.data)))
edit_metadata(db, row_list, 0)Code:
def _configure_lubimyczytac(self):
from calibre.customize.ui import initialized_plugins
for plugin in initialized_plugins():
if plugin.name == 'LubimyCzytac':
if not plugin.is_customizable():
return info_dialog(self, _('Plugin not customizable'),
_('Plugin: %s does not need customization')%plugin.name, show=True)
from calibre.customize import InterfaceActionBase
if isinstance(plugin, InterfaceActionBase) and not getattr(plugin,
'actual_iaction_plugin_loaded', False):
return error_dialog(self, _('Must restart'),
_('You must restart calibre before you can'
' configure the <b>%s</b> plugin')%plugin.name, show=True)
plugin.do_user_config(self.parent())Is possible call fetch/download metadata from GUI plugin and next run other functions?
Code:
My plan:
1. Download metadata
2. Move value from ID to custom column
3. Delete IDDoes my concept make sense?
PS. Count Pages plugin supporting LubimyCzytac (thx davidfor) is OK, but I want to test my own solution only for speed fill custom column once downloaded value.





