Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 02-03-2021, 11:16 PM   #5341
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I already mentioned:
Code:
[defaults]

## browser_cache_path needs to be set to the location of YOUR Chrome
## browser cache.  Here are a few examples for different OS.  Note
## that all have YOUR user name in them somewhere as a Chrome Profile
## name, frequently Default.  Make sure you have set (and uncommented)
## appropriately.

## Note also that browser_cache_path goes under [defaults] because
## browser cache is read once and shared between all downloads for
## performance.

## Further note that there is a time cost to first reading the browser
## cache on each download session (not Calibre session)
JimmXinu is offline   Reply With Quote
Old 02-03-2021, 11:30 PM   #5342
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Yes, I read that. I'm not seeing any indication of whether it only takes one path or not. Example ini has two windows examples.

My line of thinking is that if multiple paths are accepted, and the first one checked becomes unavailable (due to being a different OS or a disconnected external drive or something), that FFF may be just failing instead of checking the other ones.

Last edited by ownedbycats; 02-03-2021 at 11:34 PM.
ownedbycats is offline   Reply With Quote
Advert
Old 02-04-2021, 12:13 AM   #5343
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Also, one of my huge monster fanfics just updated (and hit chapter 666 ). Fetched all four of the new chapters from page cache and I think it ran faster too.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 12:59 AM   #5344
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
No idea where my previous question went but I'm having an issue where using the replace metadata feature to alter character names also alters the character names within the downloaded fics title page.

The reason for me it's a problem is I use replace metadata to (among other things) force character names into a format that uses Calibre's tag hierarchy within my custom columns.

Under the custom columns settings I have fanficfare fill my custom column called characters with well, characters. Then under personal.ini I have replace metadata rename characters into a format so that Calibre creates subcategories within my custom characters column. That part works great.
Code:
 characters=>Harry P\.=>Harry Potter.Harry Potter
 characters=>N\. Tonks=>Harry Potter.Nymphadora Tonks
The issue is that within the fics title page it turns:
Code:
Characters: Harry P., N. Tonks
into->
Characters: Harry Potter.Harry Potter, Harry Potter.Nymphadora Tonks
The same issue happens with other columns status (which gets used to fill a "Fic Complete: Yes/No" column)

Code:
 status=>Completed=>Yes
 status=>In-Progress=>No
Which on the title page, makes this happen:
Code:
Status: In-Progress
Becomes-> 
Status: No
That ones not that bad, especially because I could just update how my custom column works from "Yes/No" to "Complete/Incomplete" or "Complete/In-Progress" but its still annoying and it turns things like pairings nearly unreadable from on the title page. It works great within the custom columns but within the fic on the title page it severely harms readability.

Is there any setting or INI change I could make to alter this behavior? Really I'm just looking for some way to have replace metadata not impact the title page (or what would be even better is only have specific parts of replace metadata alter the title page if thats a thing).
FiendfyreSnake is offline   Reply With Quote
Old 02-04-2021, 01:08 AM   #5345
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Unfortunately, hierarchicals in replace_metadata does affect the title page; I'm still finding fics labeled as "Fanfiction.Mass Effect."

However, it may be possible to use add_to_extra_valid_entries & include_in_entryname to accomplish what you want. I use it to remap categories to a few broad tags:

Code:
replace_metadata: 
## Sorts anything other than a few selected categories into "Fanfiction.Other"
 tagscategory=>^(?!.*(Half-Life|Portal|Mass Effect|The Elder Scrolls|Crossover)).*$=>Other
## Adds Fanfiction. to the beginning of tagcategory
 tagscategory=>^(.*)$=>Fanfiction.\1
## Some more tagcategory standardization
 tagscategory=>(Portal|Half-Life)=>Half-Life & Portal
 tagscategory=>(Mass Effect: Andromeda|Mass Effect Trilogy)=>Mass Effect

include_metadata_post:
## Removes other tags if Crossover is a category
 tagscategory==Fanfiction.Crossover&&category==Crossover

## Adds "Crossover" if more than one category after category replaces/includes/excludes.
add_category_when_multi_category: Crossover

# 'add_to_' concats on to existing param, thus the leading comma
add_to_extra_valid_entries:,tagscategory,

# tagscategory is a copy category for Fanfiction.category in tags
include_in_tagscategory:category
include_subject_tags: tagscategory

Last edited by ownedbycats; 02-04-2021 at 01:22 AM.
ownedbycats is offline   Reply With Quote
Advert
Old 02-04-2021, 02:01 AM   #5346
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
Quote:
Originally Posted by ownedbycats View Post
Code:
# 'add_to_' concats on to existing param, thus the leading comma
add_to_extra_valid_entries:,tagscategory,

# tagscategory is a copy category for Fanfiction.category in tags
include_in_tagscategory:category
include_subject_tags: tagscategory

In your example what does this do?
Code:
include_subject_tags: tagscategory
FiendfyreSnake is offline   Reply With Quote
Old 02-04-2021, 02:10 AM   #5347
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I'm not 100% sure on this, but I think it's what categories appear as calibre Tags.

Since you're using a custom column, you'd want to use custom_columns_settings instead.

Last edited by ownedbycats; 02-04-2021 at 02:16 AM.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 02:25 AM   #5348
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Untested, but I think this is roughly how you'd want to set it up, if I've not made any mistakes*

Code:
custom_columns_settings: 
characterlist=>#yourcharactercolumn

replace_metadata: 
## Fix and standardize your character names first
 characters=>Harry P\.=>Harry Potter
 characters=>N\. Tonks=>Nymphadora Tonks

## If you'd like, any characters not listed here can be grouped under "minor characters"
characterlist=>^(?!.*(Harry Potter|Nymphadora Tonks)).*$=>Minor Characters

## Then use a conditional to prefix the fandom - you'll need to do each one individually 
## It may also cause weirdness with crossovers
characterlist=>^(.*)$=>Harry Potter.\1&&category==(Harry Potter)

# 'add_to_' concats on to existing param, thus the leading comma
add_to_extra_valid_entries:,characterlist

#characterlist is a copy category for Fandom.character
include_in_characterlist:characters
*to Jim: apologies in advance if I get this wrong and you need to correct it

There might be a better way to handle the conditional but I'm not sure how do to it.

Last edited by ownedbycats; 02-04-2021 at 02:54 AM.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 03:02 AM   #5349
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
Okay so I setup http://test1.com?sid=12345

Code:
[test1.com]
extracharacters:Harry P.,N. Tonks,Daphne G.,Hermione G.
Code:
custom_columns_settings: 
characterlist=>#calibre_cust_charecters

replace_metadata: 
## Fix and standardize your character names first
 characters=>Harry P\.=>Harry Potter
 characters=>N\. Tonks=>Nymphadora Tonks

## If you'd like, any characters not listed here can be grouped under "minor characters"
characterlist=>^(?!.*(Harry Potter|Nymphadora Tonks)).*$=>Minor Characters

## Then use a conditional to prefix the fandom - you'll need to do each one individually 
## It may also cause weirdness with crossovers
characterlist=>^(.*)$=>Harry Potter.\1&&category==(Harry Potter)

# 'add_to_' concats on to existing param, thus the leading comma
add_to_extra_valid_entries:,characterlist

#characterlist is a copy category for Fandom.character
include_in_characterlist:characters

"#calibre_cust_charecters" is what my column apears as under "Show Calibre Column names" in the fanficfare settings

However what you have there still renames the characters on the title page. So I'll continue to play around

Could the characterlist work in replace metadata?

Code:
replace_metadata: 
## Fix and standardize your character names first
 characterlist=>Harry P\.=>Harry Potter
 characterlist=>N\. Tonks=>Nymphadora Tonks
FiendfyreSnake is offline   Reply With Quote
Old 02-04-2021, 03:06 AM   #5350
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
EDIT: Got this resolved. See the spoiler.

OK, upon adding it myself (because I like the idea), it's only half-working for me. For some reason, this fails to prefix:

Code:
 characterlist=>^(.*)$=>Mass Effect.\1&&category==(Mass Effect: Andromeda|Mass Effect Trilogy)
(I also tried &&category==Mass Effect)

But this works:

Code:
 characterlist=>^(.*)$=>Portal.\1&&category==Portal
Did I make a regex error?

EDIT: Looks like a regex error specific to my setup.

Spoiler:
Commenting this line out helped:

Code:
replace_metadata:
 category=>(^Mass Effect$|Mass Effect - All Media Types|Mass Effect - Various Authors|Mass Effect: Paragon Lost)=>Mass Effect Trilogy
However, the output matches what I put in as a conditional so I'm not sure what's going on.

Here are some fics I tested with
https://archiveofourown.org/works/17347502
https://www.fanfiction.net/s/7443161/1/

And this fic won't prefix even when I do comment out the line - do I need to escape the colon?
https://archiveofourown.org/works/28758381

I'll try messing around with that replace_metadata until it works again.

ANOTHER EDIT: I removed ^Mass Effect$ and it unbroke the conditional for the first two fics. Unfortunately, that's one of my more heavily-used ones. Any ideas what to do?

ANOTHER EDIT: I got it working!

Code:
 characterlist=>^(.*)$=>Mass Effect.\1&&category==Mass Effect Trilogy
 characterlist=>^(.*)$=>Mass Effect.\1&&category==Mass Effect: Andromeda

Last edited by ownedbycats; 02-04-2021 at 04:22 AM.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 03:28 AM   #5351
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
I simplified what you poasted earlier for easier testing for me beacuse I'm not great with regex but this is what I have now:

Code:
[test1.com]
extracharacters:Harry P.,N. Tonks,Daphne G.,Hermione G.

custom_columns_settings: 
## Character list
 characterlist=>#charecters

# 'add_to_' concats on to existing param, thus the leading comma
add_to_extra_valid_entries:,oneshot,tagscategory,characterlist

include_in_characterlist:characters

replace_metadata: 
## Fix and standardize your character names first
 characterlist=>Harry P\.=>Harry Potter.Harry Potter
 characterlist=>N\. Tonks=>Harry Potter.Nymphadora Tonks
I'm very interested in your method for bulk fandom prefixing so I'll watch that, but this is working and using a text editor I can quickly update my old ini so thank you a bunch.
FiendfyreSnake is offline   Reply With Quote
Old 02-04-2021, 03:42 AM   #5352
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by FiendfyreSnake View Post
However what you have there still renames the characters on the title page. So I'll continue to play around
Did you remember to un-assign the character column in Customize > Custom Columns?

Also, if you're only using Update Metadata, that doesn't touch the ePub so a broken title page won't be fixed. Make sure to Update Always instead.
ownedbycats is offline   Reply With Quote
Old 02-04-2021, 03:46 AM   #5353
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
Yes I did, for a while i stuggled to get the characterlist characters to then go into the column until i saw your latest post and saw you where using the Calibre settings #columname instead of the fanficfare "Show Calibre Column Names" list.

withing the ini I changed

Code:
 characters=>Harry P\.=>Harry Potter.Harry Potter
to be:
 characterlist=>Harry P\.=>Harry Potter.Harry Potter
This fixed my issue with it changing the title page.
FiendfyreSnake is offline   Reply With Quote
Old 02-04-2021, 03:52 AM   #5354
FiendfyreSnake
Member
FiendfyreSnake began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2021
Location: West Coast Canada
Device: None
Quote:
Originally Posted by ownedbycats View Post
Also, if you're only using Update Metadata, that doesn't touch the ePub so a broken title page won't be fixed. Make sure to Update Always instead.
Is there any way to have it only update the title page instead of the whole fic (temporarily)? I have several hundred that have this issue and I don't really want to try updating such a large number at once.
FiendfyreSnake is offline   Reply With Quote
Old 02-04-2021, 03:55 AM   #5355
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by FiendfyreSnake View Post
Is there any way to have it only update the title page instead of the whole fic (temporarily)? I have several hundred that have that issue and I don't really want to try updating such a large number at once.
Unfortunately not. Also, any fics that have been deleted from site you'll need to manually edit. The idea of implementing an "update title page from saved metadata" has been brought up, but I think Jim said it was either unfeasible or just not worth the effort.
ownedbycats is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 08:26 AM.


MobileRead.com is a privately owned, operated and funded community.