![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 62
Karma: 666
Join Date: May 2020
Location: Germany
Device: android smartphone + tablet
|
Questions about my first metadata plugin
Hello,
i've build my first calibre plugin for a metadata source. It runs so far, an the data in the debug output looks fine. However, only some of the standard metadata fields and none of the custom fields are filled in the GUI. There are some threads about custom metadata, but i'm not shure if there reflects the latest API (i use calibre 5). 'overview' is a dictionary with the collected data from the metadata source. This works: Code:
mi.comments = str(overview['Überblick:']) Code:
mi.publisher = str(overview['Leseprobe:']) mi.tags = str(overview['Glossar:']).split('/') mi.tags = [x.strip(' ') for x in mi.tags] Code:
mi.set_identifier('pp-id', series_code + issuenumber) Code:
mi.set('#subtitle', str(overview['Untertitel:'])) mi.set_user_metadata('#subtitle', str(overview['Untertitel:'])) |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cannot fill custom fields in metadata plugins. Publisher and tags should work fine however.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 62
Karma: 666
Join Date: May 2020
Location: Germany
Device: android smartphone + tablet
|
Hello Kovid,
thanks for the information, it helped a lot. The standard metadata fields in the GUI were not filled in because a stupid error: the check boxes for these fields in the configuration screen were still disabled. For the custom fields: is there any plans for such an extension? If not, is there an option to automatically fill in the custom fields from a standard field (all of the data for my custom fields is now in the comments field), for example with a different type of plugin? Anyway, thanks for this wonderful software! |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No plans, the issue is that custom columns are different in every users config/every library, so it would require some kind of configuration to map values.
As for copying values from one field to another you can do that via the search/replace tab of the bulk metadata edit dialog. |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@feuille: There are a couple of metadata source plugins that get extra data and put it in the standard columns. They delimit it somehow and either have a another plugin to do the move or can use search-and-replace to do it. An example of the plugin pair is Goodreads_rating and Float Rating (F_rating).
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source Plugin] Questions regarding parse select, docs and ref templates | Boilerplate4U | Development | 13 | 07-07-2020 02:35 AM |
[Metadata Source Plugin] Empty Plugin? (Fake Identifier) | mneimeyer | Plugins | 3 | 11-11-2019 08:07 PM |
Regarding using metadata objects in identify method of metadata download plugin api | aprekates | Development | 1 | 07-06-2014 03:35 AM |
metadata download plugin related questions | cerda | Development | 3 | 07-25-2013 05:16 PM |
[Metadata Download Plugin] Goodreads Metadata **Deprecated** | kiwidude | Plugins | 30 | 04-23-2011 02:10 PM |