![]() |
#7261 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,385
Karma: 1434798
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
|
Quote:
Code:
[defaults] # ... custom_columns_settings: "Fanfiction"=>#type It's even one of the examples in (plugin) defaults.ini: 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 |
|
![]() |
![]() |
![]() |
#7262 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2022
Device: none
|
Thanks! It didn't work for me though, is it because I have "custom_columns_settings" twice? Once under [defaults] and another under [archiveofourown.org]?
For reference, here is my personal.ini file. Spoiler:
|
![]() |
![]() |
![]() |
#7263 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,385
Karma: 1434798
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
|
Quote:
|
|
![]() |
![]() |
![]() |
#7264 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2022
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#7265 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2019
Device: Kindle Paperwhite 3
|
Quote:
|
|
![]() |
![]() |
![]() |
#7266 |
Enthusiast
![]() Posts: 31
Karma: 10
Join Date: Oct 2014
Device: Kindle Fire HD
|
As far as I can tell, when the update mode is set to "Update EPUB if New Chapters" for most sources any manual edits you make to previous chapters get kept and only the new chapters get downloaded and appended. I seem to be encountering an exception to this when updating a story from AO3, however.
There is a specific story on AO3 that has an in-text higher resolution image available than the one that FFF downloads, so I replace it in the EPUB manually (tried with both the original filename and with the FFF filename and format). The next time I update the fic the image gets reverted to the lower resolution FFF downloaded version. Why is this occurring and can I prevent it from happening? |
![]() |
![]() |
![]() |
#7267 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,385
Karma: 1434798
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
|
Quote:
Image processing happens and, by default, ensures that images are jpg and small enough to be visible in ebook readers. There are several settings you can tweak, see plugin-defaults.ini starting here. You likely want to either increase image_max_size or set no_image_processing:true. |
|
![]() |
![]() |
![]() |
#7268 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,385
Karma: 1434798
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
|
Quote:
It looks like the author/poster is using p tags in some chapters and div tags--nested in other div tags with nested div tags containing in-between--in many (but not all) chapters between chapters 22 and 83 to indicate paragraphs. It's the difference between this: Code:
<p>The first thought in my mind was: <em>Is he dead?</em></p> Code:
<div> <div>"So let me get this straight," Ran said, lowering her brow.</div> </div> <div> <div> </div> </div> FFF has code to automatically remove most empty(whitespace only) tags because, generally speaking, that's how HTML is meant to work. For most tags, whitespace doesn't matter and an empty tag shouldn't do anything. By default, the exceptions are p, th, and td tags, but that list can be changed with FFF setting keep_empty_tags. So as far as I'm concerned, the question isn't why is this happening on update?, the question is why isn't this happening on the initial download? And the answer is that FFF is removing the whitespace only tags (ie <div> </div>), but that removal leaves it's parent tag, which is now empty(except for whitespace), This: Code:
<div> <div> </div> </div> Code:
<div> </div> So, for dysphere's immediate problem (locations in book reader changing between updates), the solution that's available today is to add div to keep_empty_tags, something like this: Code:
[https://www.royalroad.com/fiction/28806] add_to_keep_empty_tags:,div This is less than ideal as it just keeps the 'empty' tags, but it will stop FFF changing the chapter text across updates. I'm looking at ways to loop the remove-empty-tags code to also remove newly emptied tags. If I figure out something I'm happy with, there will be test version posted. |
|
![]() |
![]() |
![]() |
#7269 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,181
Karma: 18002570
Join Date: Oct 2018
Location: Canada
Device: Kobo Aura HD (retired), Kobo Libra H2O
|
Question: I seem to recall that there was an option to set a custom URL (or filepath?) of an image for the cover. I'm having trouble finding it in defaults.ini. Am I mistaken?
|
![]() |
![]() |
![]() |
#7270 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2021
Device: none
|
Hey. First time posting, hope this is the right place to ask this.
I'm trying to add something in the replace_metadata: part of the personal.ini so that for example in the relationship category: Background Person 1/Person 2 becomes Person 1/Person 2 (minor) so removing/replacing the Background part of the tag with (minor) at the end. |
![]() |
![]() |
![]() |
#7271 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2021
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#7272 | ||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,385
Karma: 1434798
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
|
Quote:
Quote:
Something like this should work: Code:
add_to_replace_metadata: ships=>^Background (.*)$=>\1 (minor) |
||
![]() |
![]() |
![]() |
#7273 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,385
Karma: 1434798
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
|
New Test Version Posted
2022-06-25 - Refactor code to remove empty tags to also remove now-empty parents by making another pass. - Collect rating for adapter_libraryofmoriacom, refactor rating from TOC in base_efiction. Closes #859 |
![]() |
![]() |
![]() |
#7274 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jan 2018
Location: US
Device: Samsung Tablet & Kindle Fire using Google Play store
|
When trying to update a story from FFN, I am getting the message: browser cache failed to load with error ‘list index out of range’. I’ve tried it about a dozen times and get the same error message.
Is there another new workaround I am missing to get FFN to work? I don’t have stories get updates from FFN very often. Most have migrated to/cross post to AO3. I went through and made sure every chapter of the story was in my cache by clicking on each one. And there were 77. And I have the older workarounds about browser cache and whatever in my personal ini. I’m really not very tech savvy with this kind of stuff but I can follow directions on what to do, I just don’t really grasp the why I am doing it or what it means exactly. |
![]() |
![]() |
![]() |
#7275 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,385
Karma: 1434798
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
|
There's suggestion a couple pages back, found searching thread for 'cache'.
I've also made it into an FAQ now: I've followed all the instructions in Browser Cache Feature and it isn't working / I'm getting errors--help? |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 488 | 03-21-2022 03:49 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 389 | 02-02-2022 06:03 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 |