View Single Post
Old 09-24-2023, 11:43 PM   #8948
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: 6,840
Karma: 4604429
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by chibimaya92 View Post
Can i ask help to configure my personal.ini ?
...
I will help with specific issues when I have time (my time will be limited this week, FYI). But all my general answers are already here or in the wiki.

If they don't help, perhaps someone else can.

Quote:
Originally Posted by chicleeblair View Post
1. My chapterstotal column is text so that it can handle “?”s and when I update anthologies, it collects the total number of chapters in each ePub. Is there a way to get it to sum these like the #chapters column, which is integers?
IMO, chapterstotal isn't very useful. Most incomplete stories have '?' and if any story in an anthology has '?' the sum of chapterstotal could well be less than the sum of numChapters.

chapterstotal is a site specific metadata entry. IE, FFF only collects it for AO3 (and other OTW) sites. In fact, it's derived from chapterslashtotal using add_to_replace_metadata.

From defaults.ini:
Code:
## chapterslashtotal contains 1/3 or 1/1 or 3/? etc as reported by AO3.
## chapterstotal is just the total chapters part after the /
include_in_chapterstotal:chapterslashtotal.NOREPL
add_to_replace_metadata:
 chapterstotal=>^([0-9])+/(.+)$=>\2
If you set a metadata entry (using custom_columns_settings) into a float or integer type custom column, FFF will automatically split the list by commas and sum the values when it's an anthology.

But with the default definition of chapterstotal, that's a problem, because of the '?'.

Here's a brute force approach make chapterstotal the total or current when total is ?
Code:
## chapterslashtotal contains 1/3 or 1/1 or 3/? etc as reported by AO3.
include_in_chapterstotal:chapterslashtotal.NOREPL
add_to_replace_metadata:
 chapterstotal=>((?P<chap>[0-9]+)/\?)|([0-9]+/(?P<totchap>[0-9]+))=>\g<chap>\g<totchap>
Putting that in [defaults] works while doing away with '?' for chapterstotal.

Splitting out a separate copy or putting it under a more specific section should be possible, but I'm too tired right now.
JimmXinu is offline   Reply With Quote