![]() |
#16 | |
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
|
Quote:
Some more can be done with the tag mapping. Though, it doesn't do custom columns. A plugin to set custom columns isn't that hard to write. For examples: The Count Pages plugin is the one I normally point people to (or Modify ePub, but it doesn't fit with what you want). It can apply its function over multiple books and set multiple custom columns. It only does numeric columns, but it isn't much of a stretch to do tag-like colums. It is useful if you want to something in a batch job. Plus, it should be the one that does the updates in the best manner. Both the Reading List and Goodreads Sync plugins will set the tags or tag-like columns. The former is probably simpler, but is setting a single value. The later is generating the list of tags from Goodreads and then setting the columns. Import List also does multiple updates of columns based on data from CSV files or web sites. My Kobo Utilities plugin does various things were it updates columns. The collection fetch will update a tag-like custom column with the current collections the books are in. Not sure if I really want to suggest looking at it, as there is some very ugly code in the plugin. But, it does do just about anything you want to in a plugin except actually modify a book. |
|
![]() |
![]() |
![]() |
#17 |
Enthusiast
![]() Posts: 36
Karma: 10
Join Date: Feb 2017
Device: Kobo Aura H2O
|
For the curious, everything I needed for my particular use-case (I'm happy running a command-line script periodically to update my tags, I don't need a GUI) I found in the database API. I call:
Code:
db.all_book_ids() Code:
db.get_metadata() Code:
db.set_field('#collections', book_id_to_val_map) At this point, I think I have more to gain by improving the metadata I'm using as input than refining the collections processing. In particular, most fanfiction sites have additional contextual information about what tag represents like the Category, Relationship, Fandom, and Freeform classifications for AO3. For AO3 I wrote my own scraper because I also needed it to handle canonicalization which FanFicFare definitely doesn't do. I took a look at FanFicFare's capabilities for other sites. Internally, it calls a method self.story.setMetadata() that takes two arguments, a type of metadata and its actual value. However, even after I looked through the config settings, it's not immediately clear to me how to use that. What I really want is a way to just dump key-value pairs into a custom column in Calibre or a file, with FanFicFare's command tool. FanFicFare also doesn't do complete metadata processing for some sites, so I'll either have to extend it or write my own scraper, again. |
![]() |
![]() |
Advert | |
|
![]() |
Tags |
calibre, kobo, kobo calibre database, metadata |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Management of annotations with Kobo and Calibre | Ziggi | Plugins | 2 | 11-13-2015 01:10 PM |
Metadata Management on Android not working? | TheStretchedElf | Devices | 0 | 08-08-2012 09:10 AM |
Kobo to Calibre Metadata Issue | joelarthurs | Calibre | 0 | 01-21-2012 03:10 PM |
kobo management strategy | baronrus | Kobo Reader | 1 | 03-25-2011 04:34 PM |
Automatic Metadata Management | gxxshock | Calibre | 2 | 12-28-2008 12:48 PM |