View Single Post
Old 10-28-2020, 06:04 AM   #1
feuille
Connoisseur
feuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enough
 
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:'])
... and this not:
Code:
mi.publisher = str(overview['Leseprobe:'])
mi.tags = str(overview['Glossar:']).split('/')
mi.tags = [x.strip(' ') for x in mi.tags]
This works:
Code:
mi.set_identifier('pp-id', series_code + issuenumber)
... and this not:
Code:
mi.set('#subtitle', str(overview['Untertitel:']))
mi.set_user_metadata('#subtitle', str(overview['Untertitel:']))
Thanks for any hints!
feuille is offline   Reply With Quote