![]() |
#7501 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 99
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
|
First, this isn't important, I'm only posting about it because I'm wondering if there is a simple fix I don't know how to do yet or something.
There is an old fic on SB, pre-threadmark, with an index page. In the past I've just used the link to the index post and FFF has downloaded things fine. I've tried multiple times with the story I'm asking about with no luck, even though that exact procedure worked with the first story in the series. The index link is: https://forums.spacebattles.com/thre.../post-11606823 [s]The comment from the log file when it fails is: HTTP Error in FFF '404 Client Error: Not Found for url: https://forums.spacebattles.com/posts/11606805/'(404) I THINK the issue is something to do with the fact that while the link I'm actually putting into FFF works, the link FFF is using doesn't... but I have no idea why it's changing or how to make it not do so.[/s] Ignore the above. I'm still having the issue, but I realized why it's happening... I think. The first link in the index post (the one with the 404) is crossed out and, even though clicking on it while on the page takes you to the first page of that thread, I don't think it's working properly... Is there a way to set FFF to ignore just the first link in the index post? Sorry to be a pain! And thanks for any help anyone can give! |
![]() |
![]() |
![]() |
#7502 |
Geek of All Trades
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 100878
Join Date: Aug 2012
Location: Minneapolis
Device: Kindle Oasis (3rd gen)
|
When it comes to cover art, any time I mess around with Generate Cover after a download to make changes to art, I run the plug-in Modify ePub on the work(s) whose covers I've changed/modified. It works great!
Modify ePub thread: https://www.mobileread.com/forums/sh...d.php?t=154371 There are checkboxes in Modify ePub for Remove broken image pages, Remove existing cover, and Insert or Replace Cover. I keep the latter option checked by default since 99% of the time when I run this plug-in, it's to add/replace a cover. |
![]() |
![]() |
Advert | |
|
![]() |
#7503 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
There's a setting in FFF to ignore specific chapter URLs. In this case it would be: Code:
[https://forums.spacebattles.com/posts/11606823/] ignore_chapter_url_list: https://forums.spacebattles.com/posts/11606805/ As a more general setting, you could put continue_on_chapter_error:true in personal.ini under [defaults] or for specific sites to not fail out when individual chapters fail. From defaults.ini: Spoiler:
|
|
![]() |
![]() |
![]() |
#7504 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 99
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
|
Thanks! I used the ignore chapter code and it worked great!
|
![]() |
![]() |
![]() |
#7505 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2022-09-06 - Clear metadata cache on numWords set from plugin for derived values. - Deprecate 'Update EPUB Cover?' Download Option. See #878 and Cover Settings Calibre Plugin - Add force_cover_image setting - Add use_old_cover setting - Add 'Set Calibre Cover Only for New Books' checkbox This version doesn't quite remove the 'Update EPUB Cover?' Download Option, but it deprecates and complains if you try to use it unchecked. See #878. I've spent several days writing Cover Settings Calibre Plugin--and it's still not quite done yet. But I wanted to get a sanity check from users about whether the whole cover system makes more sense and is better explained now than before. |
![]() |
![]() |
Advert | |
|
![]() |
#7506 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,185
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Hi,
I was testing out this block of code: Code:
strip_chapter_numbers:true
add_chapter_numbers:true
chapter_title_add_pattern: Chapter ${number}. ${title}
In my test story "Chapter 1" turns into "Chapter 1 - Chapter 1," if I remove ${title} from the chapter_title_add_pattern it turns "Chapter 1 - Chapter 1" back to "Chapter 1." However, stories that have a chapter title lose the chapter title if I don't include ${title}. Without the block of code managing the chapters, my chapters look like this: "1. title of chapter" "1. Chapter 1" I was trying to find a way to make the chapters look like this instead: "Chapter 1 - title of chapter" "Chapter 1" I think without conditional statements what I'm trying to accomplish may not be possible. But I thought I'd run it by this forum first before I give up. Thanks for any and all advice. Amalthia |
![]() |
![]() |
![]() |
#7507 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Code:
## (Two versions of chapter_title_strip_pattern are shown below. You ## should only have one uncommented.) ## This version will remove the leading number from: ## "1." => "" ## "1. The Beginning" => "The Beginning" ## "1: Start" => "Start" ## "2, Chapter the second" => "Chapter the second" ## etc ## Leaves unchanged "1.1" or "1" ## Note that your ToC entry(ies) may be empty if the ## chapter_title_strip_pattern removes everything and you don't have ## add_chapter_numbers:true. chapter_title_strip_pattern:^[0-9]+[\.: -]+(?=[^0-9]|$) ## This version remove leading numbers and 'Chapter 1': ## "Chapter 1" => "" ## "1. Chapter 1" => "" ## "1. Chapter 1, Bob's First Clue" => "Bob's First Clue" ## "Chapter 2 - Pirates Place" => "Pirates Place" ## etc ## Note that your ToC entry(ies) may be empty if the ## chapter_title_strip_pattern removes everything and you don't have ## add_chapter_numbers:true. #chapter_title_strip_pattern:^([0-9]+[\.: -]+)?(Chapter *[0-9]+[\.:, -]*)? |
|
![]() |
![]() |
![]() |
#7508 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,185
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Quote:
EDITED: Figured it out. I needed this block of code for everything to work. Code:
strip_chapter_numbers:true add_chapter_numbers:true chapter_title_add_pattern: Chapter ${number}. ${title} chapter_title_strip_pattern:^([0-9]+[\.: -]+)?(Chapter *[0-9]+[\.:, -]*)? Amalthia Last edited by Amalthia; 09-06-2022 at 06:36 PM. Reason: Solved the question |
|
![]() |
![]() |
![]() |
#7509 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7510 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,185
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Quote:
Now that I've implemented the below code: Code:
chapter_title_add_pattern: Chapter ${number}: ${title} chapter_title_strip_pattern:^([0-9]+[\.: -]+)?(Chapter *[0-9]+[\.:, -]*)? I've tried a few things and none of them worked. Here is one attempt: Code:
chapter_title_strip_pattern:^([0-9]+[\.: -]+)?(Chapter *[0-9]+[\.:, -]*)?(: )?
Code:
chapter_title_strip_pattern:^([0-9]+[\.: -]+)?(Chapter *[0-9]+[\.:, -]*)?(: $)?
Thanks, Amalthia p.s. I don't want to remove the colon from chapter_title_add_pattern: because then I have "Chapter 1 title of chapter" and I'd like some break between the chapter number and title. |
|
![]() |
![]() |
![]() |
#7511 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Sep 2022
Device: none
|
![]()
Hi,
First, sorry if my english is bad, it's not my native language. I'm trying to configure Wattpad but I've come across something that I'can figure out how to do it. On Wattpad sometimes authors include images that are in the chapters but appear as "banners" above them, but usually are relevant. For Example: https://www.wattpad.com/774125179-th...art-two-cheryl I have the following set in the personal.ini: Code:
[wattpad.com] include_images:true use_basic_cache:true is_adult:true extra_titlepage_entries: language, reads extra_valid_entries: language, tags, reads, ships reads_label:Read Count include_in_genre: tags # Add comma separators for numeric reads. Eg 10000 becomes 10,000 add_to_comma_entries:,reads keep_in_order_ships: true titlepage_entries: seriesHTML,ships,status,datePublished,dateUpdated, dateCreated,numChapters,numWords,reads,site,warnin gs,characters,category,genre,calibre_std_tags,description calibre_std_tags_label:Tags ## number of seconds to sleep between calls to the story site. There ## are reports that sound like site throttling without it. slow_down_sleep_time:2 include_in_ships: choni, bughead, varchie, clexa replace_metadata: ship=>varchie=>Archie Andrews/Veronica ships=>choni=>Cheryl Blossom/Toni Topaz ships=>bughead=>Betty Cooper/Jughead Jones ships=>clexa=>Clarke Griffin/Lexa Thanks in advance ![]() |
![]() |
![]() |
![]() |
#7512 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
I didn't figure out until the PS that you're really talking about chapters with a ${title} value vs without after chapter_title_strip_pattern is applied. The easy route is to just change to something else, like '.' -- "Chapter 1." standing alone looks better, IMO. But then I'm also perfectly happy with '1. Chapter 1'. chapter_title_add_pattern is implemented using python's builtin string.Template mechanism. I don't believe it has any way to conditionally include or exclude parts without actually putting them in the pattern. I can't think of any way without adding new code. I hesitate to do that because it's pretty niche. And would need to be configurable, you want ':', I'd use '.', somebody else would want ' - ', etc. I'll consider it if more users speak up in favor. |
|
![]() |
![]() |
![]() |
#7513 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
FFF doesn't currently do that. But it looks like something we could do. The image would be included in the chapter text and appear below the chapter title, not above it. Possibly that could be changed with custom CSS. I don't read wattpad. Is this something that should always be included (if present), or an option users can turn on and off? On or off by default? |
|
![]() |
![]() |
![]() |
#7514 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,185
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Quote:
Ideally, authors would find a more consistent way to label their chapters. I'll try a few different punctuation marks and see which one works best for the chapters that don't have titles, since we can't use the chapter_title_strip_pattern: twice, or add to the end of it to remove just colon. Have a good night! Amalthia |
|
![]() |
![]() |
![]() |
#7515 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,988
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
![]() |
![]() |
![]() |
Tags |
fanfiction |
|
![]() |
||||
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 |