View Single Post
Old 05-12-2020, 12:13 PM   #4094
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by CuddlyMakani View Post
Hi! I discovered Calibre & Fanficfare only yesterday and I'm amazed!
I managed everything pretty well except one thing:

I can't get the "Chapters/Total Chapters" for ArchiveOfOurOwn to work. I tried every type of column there is and chose "Chapters" for each one.

There wasn't anything other chapter-related to choose from: No "chapterstotal", "chapterslashtotal" or similar.
The GUI config Custom Columns settings only work with what I call 'standard' or common metadata that virtually all the supported sites have. AO3's "chapterstotal" and "chapterslashtotal" are examples of what I call 'site specific' metadata that are not common to all supported sites.

To set those to a custom column, you instead have to use the personal.ini setting custom_columns_settings. Here's what defaults.ini has to say about it:

Spoiler:
Code:
## (Plugin Only) - You can also populate calibre custom columns with
## the site specific metadata using custom_columns_settings (but only
## if 'Allow custom_columns_settings from personal.ini' is checked in
## the plugin GUI config.)  There are three parts, the entry name,
## then the label of the calibre custom column, then (optionally) a
## 'mode'.  'r' to Replace any existing values, 'a' to Add to existing
## value (use with tag-like columns), and 'n' for setting on New books
## only.  (Default is 'r'.)

## Literal strings can be set into custom columns using double quotes.
## Each metadata=>column mapping must be on a separate line and each
## needs to have one space at the start of each line.

## 'r_anthaver' and 'n_anthaver' can be used to indicate the same as
## 'r' and 'n' for normal downloads, but to average the metadata for
## the differents story in an anthology before setting in integer and
## float type custom columns.  This can be useful for a averrating
## column, for example.  Default is to sum the values of all stories,
## and numChapters and numWords are always summed.

custom_columns_settings:
 cliches=>#acolumn
 themes=>#bcolumn,a
 timeline=>#ccolumn,n
 "FanFiction"=>#collection
 averrating=>#averrating,r_anthaver


You should be able to find some examples in previous discussion in this thread. Also, chapterslashtotal can't be set in a number type custom column, it needs a string.
JimmXinu is offline   Reply With Quote