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 08-16-2016, 05:18 PM   #1456
SallyK
Enthusiast
SallyK began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Aug 2010
Device: Kobo GloHD
Thank you for checking - I'll have to keep an eye, and hope they fix it.
SallyK is offline   Reply With Quote
Old 08-16-2016, 06:13 PM   #1457
Shadewing
Junior Member
Shadewing doesn't litterShadewing doesn't litter
 
Posts: 4
Karma: 114
Join Date: Apr 2012
Device: iPhone
Talking Feature request

Hi,

First, I love this plug-in . I've been using it and its predecessor for a while and they are great!

I don't know if anyone else would find this useful but I'd like to see a 'previously updated' metadata value. It would basically be whatever was in the 'Updated' field before the new update.

Like I said, don't know how useful anyone else would find it, also don't know how complex or simple adding it would be but I figured I'd ask.

for a great plug-in.
Shadewing is offline   Reply With Quote
Advert
Old 08-16-2016, 07:01 PM   #1458
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Shadewing View Post
First, I love this plug-in . I've been using it and its predecessor for a while and they are great!
Glad you like it.

Quote:
Originally Posted by Shadewing View Post
I don't know if anyone else would find this useful but I'd like to see a 'previously updated' metadata value. It would basically be whatever was in the 'Updated' field before the new update.
You can, by checking the "Pass Calibre Columns into FanFicFare on Update/Overwrite" checkbox on the personal.ini tab and adding the special metadata name for your updated field to titlepage_entries or custom_columns_settings (etc). Note that this only works with actual EPUB updates or overwrites, not update metadata only settings.

But have you looked at the logpage settings? Only works with EPUB, but I like having a record of all the past updates, when they happened, how many words, did they change the title?, etc, etc. I've attached an epub (trimmed for size and content) with a logpage from my library as an example.

This was a feature I added for my own use that I've always been a bit surprised isn't more popular.

Code:
## Default settings, logpage is OFF by default:

## include a Update Log page before the story text.  If 'true', the
## log will be updated each time the epub is and all the metadata
## fields that have changed since the last update (typically
## dateUpdated,numChapters,numWords at a minimum) will be shown.
## Great for tracking when chapters came out and when the description,
## etc changed.
## Plugin will now preserve the log page when the epub is overwritten,
## too.
include_logpage: false

## If set to 'smart', logpage will only be included if the story is
## status:In-Progress or already had a logpage.  That way you don't
## end up with Completed stories that have just one logpage entry.
#include_logpage: smart

## items to include in the log page Empty metadata entries, or those
## that haven't changed since the last update, will *not* appear, even
## if in the list.  You can include extra text or HTML that will be
## included as-is in each log entry. Eg: logpage_entries: ...,<br />,
## summary,<br />,...
logpage_entries: dateCreated,datePublished,dateUpdated,numChapters,numWords,status,series,title,author,description,category,genre,rating,warnings

## Here's what I personally use:

[epub]
include_logpage: smart
logpage_entries: fulldownload,dateCreated,datePublished,dateUpdated,numChapters,numWords,status,version,title,storyUrl,series,author,category,genre,rating,warnings,description

# so overwrite downloads have some marker.  
add_to_extra_valid_entries:,fulldownload
include_in_fulldownload:title
fulldownload_label:New Download

add_to_replace_metadata:
 fulldownload=>^.*$=>Yes
Attached Files
File Type: epub Like a Boss - Oxnate.epub (4.2 KB, 168 views)
JimmXinu is offline   Reply With Quote
Old 08-17-2016, 12:06 AM   #1459
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, I didn't know that option existed, but now I know I rather like the idea myself.
eschwartz is offline   Reply With Quote
Old 08-17-2016, 06:22 AM   #1460
Montana Harper
book geek (she/her)
Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.
 
Montana Harper's Avatar
 
Posts: 116
Karma: 2029154
Join Date: Sep 2013
Location: Pacific Northwest
Device: iPhone 16 Pro Max, Kindle Paperwhite (10th gen)
Quote:
Originally Posted by JimmXinu View Post
This was a feature I added for my own use that I've always been a bit surprised isn't more popular.
I used it briefly, but I felt it made my epubs less pretty. If I could set it to put the page at the end of the epub instead of the beginning, then I'd definitely start using it again, because I do like having that information.
Montana Harper is offline   Reply With Quote
Advert
Old 08-17-2016, 01:21 PM   #1461
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version posted (direct link)

2016-08-17
- Adding logpage_at_end INI option.

Quote:
Originally Posted by Montana Harper View Post
I used it briefly, but I felt it made my epubs less pretty. If I could set it to put the page at the end of the epub instead of the beginning, then I'd definitely start using it again, because I do like having that information.
I guess it was four years ago now that I implemented that and then didn't hear anything when I asked for comments on it.

Set logpage_at_end to true inside [epub] and logpage will appear after the chapters instead of before.

I have vague memories that I did it that way originally but moved it to the top because reasons. I'm just not sure what 'reasons' where. Possibly because it moved my 'current spot' in my ebook reader in ways I didn't like.

So give this a try, see what you think.
JimmXinu is offline   Reply With Quote
Old 08-17-2016, 02:30 PM   #1462
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Hi Jimm
Sorry for my late reply - I'm travelling...

It's this issue:
Quote:
---Quote (Originally by firefoxxy)---
I just tried to download this story from AO3 (http://archiveofourown.org/works/4023559) and got this error: 'unmatched group'
Here's my (complete) personal.ini:
Spoiler:
Code:
## This is an example of what your personal configuration might look
## like.  Uncomment options by removing the '#' in front of them.

[defaults]
## [defaults] section applies to all formats and sites but may be
## overridden at several levels.  Example:

## [defaults]
## titlepage_entries: category,genre, status
## [www.whofic.com]
## # overrides defaults.
## titlepage_entries: category,genre, status,dateUpdated,rating
## [epub]
## # overrides defaults & site section
## titlepage_entries: category,genre, status,datePublished,dateUpdated,dateCreated
## [www.whofic.com:epub]
## # overrides defaults, site section & format section
## titlepage_entries: category,genre, status,datePublished
## [overrides]
## # overrides all other sections
## titlepage_entries: category

## Some sites also require the user to confirm they are adult for
## adult content.  Uncomment by removing '#' in front of is_adult.
is_adult:true

replace_br_with_p: true

## Don't like the numbers at the start of chapter titles on some
## sites?  You can use strip_chapter_numbers to strip them off.  Just
## want to make them all look the same?  Strip them off, then add them
## back on with add_chapter_numbers.  Don't like the way it strips
## numbers or adds them back?  See chapter_title_strip_pattern and
## chapter_title_add_pattern.
#strip_chapter_numbers:true
#add_chapter_numbers:true

## Add this to genre if there's more than one category.
#add_genre_when_multi_category: Crossover

## If you have the Generate Cover plugin installed, you can use the
## generate_cover_settings parameter to intelligently decide which GC
## setting to run.  There are three parts 1) a template of which
## metadata part(s) to look at, 2) a regular expression to match the
## template, and 3) the name of the GC setting to use, which must
## match exactly.  Use this parameter in [defaults], or by site eg,
## [ficwad.com]
## Make sure to keep at least one space at the start of each line and
## to escape % to %%, if used.
## template => regexp to match => GC Setting to use.
## To use this, make sure you go to the Generate Cover tab in FanFicFare
## config and check 'Allow generate_cover_settings from personal.ini
## to override'
## You can check for an existing cover image in the metadata
## cover_image.  cover_image can be:
## specific -- The site has an image that is specifically this story's cover
## first -- The first image in the story or story desc is used as cover
## default -- A default_cover_image was used
## old -- There was already a cover image in the epub.
## This is useful because GC plugin can use the existing image.
generate_cover_settings:
 ${ships},${genre}=>Harry &amp; Severus,Guardian/Mentor=>HP Harry Severus kid magic 
 ${ships},${genre}=>Naruto &amp; Sasuke,kid fic=>Naruto NaruSasu kids
 ${ships},${genre}=>Naruto/Sasuke,Alternate Universe=>Naruto NaruSasu AU
 ${ships},${genre}=>Naruto/Sasuke,Female Naruto=>Naruto NaruSasu fem
 ${ships}=>Harry/Severus=>HP Snarry hug
 ${characters}=>Harry/Severus=>HP Snarry hug
 ${ships}=>Hermione/Severus=>HP HermioneSeverus
 ${ships}=>Lily/Severus=>HP LilySeverus hug
 ${ships}=>Remus/Severus=>HP RemusSeverus hug
 ${ships}=>Naruto/Sasuke=>Naruto NaruSasu
 ${ships}=>Kakashi/Sasuke=>Naruto KakaSasu kiss
 ${ships}=>Sakura/Sasuke=>Naruto SakuSasu
 ${ships}=>Kakashi/Sakura=>Naruto SakuKaka
 ${ships}=>Hinata/Sasuke=>Naruto HinaSasu
 ${ships}=>Iruka/Kakashi=>Naruto Irukakashi
 ${ships}=>Itachi &amp; Sasuke=>Naruto Brothers hug
 ${ships}=>Kakashi &amp; Sasuke=>Naruto Kaka&Sasu
 ${ships}=>Naruto &amp; Sakura & Sasuke=>Naruto Team
 ${ships}=>Team Seven=>Naruto Team
 ${ships}=>Naruto &amp; Sasuke=>Naruto NaruSasu kids shadow
 ${ships}=>Orihime/Ulquiorra=>Bleach UlquiHime
 ${ships},${genre}=>Loki/Tony,Jötunn!Loki=>Marvel LokiTony Jotunn
 ${ships}=>Loki/Tony=>Marvel LokiTony
 ${ships}=>Loki/Thor=>Marvel Thorki roses
 ${ships}=>Loki/Steve=>Marvel LokiSteve
 ${ships}=>Loki/Thranduil=>Linen Cover ornament
 ${ships}=>Loki &amp; Thor=>Marvel Loki&Thor
 ${genre}=>Jötunn!Loki=>Marvel Loki Jotunn
 ${characters}=>Luna Lovegood=>HP Luna 
 ${category}=>Bleach=>Bleach
 ${category}=>Final Fantasy VII=>FF VII Vinvent Valentine
 ${category}=>Final Fantasy VIII=>FF VIII logo
 ${category}=>Fruits Basket=>Fruits Basket
 ${category}=>Harry Potter Works=>Harry Potter
 ${category}=>Loveless=>Loveless
 ${category}=>Marvel=>Marvel
 ${category}=>Naruto=>Naruto
 ${category}=>Ouran High School Host Club=>Ouran High School Host Club
 ${category}=>Vampire Knight=>Vampire Knight
 ${site}=>archiveofourown.org=>AO3

[epub]
## include images from img tags in the body and summary of stories.
## Images will be converted to jpg for size if possible.  Images work
## in epub format only.  To get mobi or other format with images,
## download as epub and use Calibre to convert.
include_images:true

## If not set, the summary will have all html stripped for safety.
## Both this and include_images must be true to get images in the
## summary.
keep_summary_html:true

## If set, the first image found will be made the cover image.  If
## keep_summary_html is true, any images in summary will be before any
## in chapters.
make_firstimage_cover:true

## Resize images down to width, height, preserving aspect ratio.
## Nook size, with margin.
image_max_size: 580, 725

## Change image to grayscale, if graphics library allows, to save
## space.
#grayscale_images: false

## Most common, I expect will be using this to save username/passwords
## for different sites.  Here are a few examples.  See defaults.ini
## for the full list.

[archiveofourown.org]
username:XXXXXXXX
password:XXXXXXXX
include_in_characters: characters, ships
include_in_genre: genre,warnings,freeformtags
sort_ships:true
add_to_custom_columns_settings:
 kudos=>#kudos
 hits=>#aufrufe
 comments=>#reviews
exclude_metadata_pre:
 ships,characters,genre,freeformtags=~Other (Additional|Character|Relationship) Tags to Be Added
 warnings==Creator Chose Not To Use Archive Warnings
 warnings==No Archive Warnings Apply
 genre=~.*-centric
 genre==Alternate Ending
 genre=~Alternate Universe - Canon( Divergence)?
 genre=~([tT]he )?[aA]uthor [rR]egrets.*
 genre=~([tT]he )?[aA]uthor [iI]s.*
 genre==Avengers Tower
 genre=~.*Canon Compliant.*
 genre=~Canon Divergence.*
 genre=~Community:.*
 genre==Cute
 genre==Drabble
 genre==Het
 genre==Non-Explicit Sex
 genre=~Originally Posted.*
 genre==Post-Canon
 genre==Pseudo-Incest
 genre=~([mM]ale)?Slash
 genre=~[sS]orry [nN]ot [sS]orry
 genre=~.*Tumblr.*
 genre=~Wordcount.*
replace_metadata:
## general clean-up
 category=> (- All Media Types|- Fandom|\(.*[mM]ovies\)|\(Movie [0-9]+\)|\(Comics\)|\(TV\)|(MCU))$=>
 characters=>\(?mentions of\)? =>
 characters=> \([Ch]haracter\)=>
 characters=> ?\((cameo|briefly|if you squint|sort of)\)=>
 characters=> - Character=>
 characters=>^Other mentions$=>
 characters,category,genre=> - [fF]reeform=>
 ships=>(.*)[/&](.*) \(?[Ff]riendship(?: only)\)?=>\1 &amp; \2
 ships=>([bB]ackground )? - Relationship=>
 ships,characters,genre=>[mM]inor =>
## end general clean-up
 category=>.*Harry Potter.*=>Harry Potter Works
 category=>.*Marvel.*|.*Avengers.*|.*Iron Man.*|.*Thor.*|.*Loki.*|^Captain America.*=>Marvel Universe
 characters=> \((Marvel|MCU|Harry Potter)\)$=>
 characters=>^Amora.*$=>Amora
 characters=>^Angrbo.*$=>Angrboda
 characters=>^Avengers$=>The Avengers
 characters=>^Balde?r.*$=>Baldr
 characters=>^Betty.*$=>Betty Ross
 characters=>^Bruce.*$=>Bruce Banner
 characters=>^Byleistr.*$=>Byleistr
 characters=>^(Clint.*|Hawkeye.*)$=>Clint Barton
 characters=>^Draco.*$=>Draco Malfoy
 characters=>^Fandral.*$=>Fandral
 characters=>^F.rbauti.*$=>Farbauti
 characters=>^Fenri[sr].*$=>Fenrir
 characters=>^Frigga.*$=>Frigga
 characters=>^Director Fury$=>Nick Fury
 characters=>^Harry.*$=>Harry Potter
 characters=>^(Haruno )?Sakura$=>Sakura Haruno
 characters=>^(Hatake )?Kakashi$=>Kakashi Hatake
 characters=>^Heimdall.*$=>Heimdall
 characters=>^Hel.*$=>Hel
 characters=>^Helblindi.*$=>Helblindi
 characters=>^Hermione.*$=>Hermione Granger
 characters=>^Hogun.*$=>Hogun
 characters=>^(Hyuuga )?Hinata$=>Hinata Hyuuga
 characters=>^(James)?(Bucky.*|.*Barnes)$=>Bucky Barnes
 characters=>^Jane F.*$=>Jane Foster
 characters=>^Jarvis.*$=>Jarvis
 characters=>^J(o|ö)rmungand.*$=>Jörmungand
 characters=>^Laufey.*$=>Laufey
 characters=>^Lily Evans.*$=>Lily Potter
 characters=>^Loki.*$=>Loki
 characters=>^Lucius.*$=>Lucius Malfoy
 characters=>^Namikaze Minato$=>Minato Namikaze
 characters=>^Narcissa.*$=>Narcissa Malfoy
 characters=>^(Natasha.*|Black Widow)$=>Natasha Romanov
 characters=>^(OC.*|OFC|OMC|Original Characters?)$=>Original Character
 characters=>^Odin.*$=>Odin
 characters=>^Pepper.*$=>Pepper Potts
 characters=>^Peter Parker.*$=>Peter Parker
 characters=>^(Phil.*|(Agent )?Coulson)$=>Phil Coulson
 characters=>^Remus.*$=>Remus Lupin
 characters=>^Ron.*$=>Ron Weasley
 characters=>^Sai \(Naruto\)$=>Sai
 characters=>^Sam Wilson.*$=>Sam Wilson
 characters=>^Severus.*$=>Severus Snape
 characters=>^Sif.*$=>Sif
 characters=>^Sigyn.*$=>Sigyn
 characters=>^Sleipnir.*$=>Sleipnir
 characters=>^Steve.*$=>Steve Rogers
 characters=>^Thanos.*$=>Thanos
 characters=>^The Other.*$=>The Other
 characters=>^Thor.*$=>Thor
 characters=>^Tony.*$=>Tony Stark
 characters=>^Uchiha Fugaku$=>Fugaku Uchiha
 characters=>^(Uchiha )?Itachi$=>Itachi Uchiha
 characters=>^Uchiha Mikoto$=>Mikoto Uchiha
 characters=>^(Uchiha )?Sasuke$=>Sasuke Uchiha
 characters=>^(Uchuha )?Shisui=>Shisui Uchiha
 characters=>^Uzumaki Kushina$=>Kushina Uzumaki
 characters=>^Uzumaki Naruto$=>Naruto Uzumaki
 characters=>^(Voldemort.*|Tom Riddle.*)$=>Tom Riddle Jr.
 characters=>^Volstagg.*$=>Volstagg
 characters=>^Wanda.*$=>Wanda Maximoff
## second name only for certain family-name-first names:
 ships_CHARS=>^(Uchiha|Uzumaki|Haruno|Hyuuga|Hatake|Inuzuka|Namikaze) *([^ ]+)$=>\2
## strip each ships char down to first name only.
 ships_CHARS=>^([^ ]+).*$=>\1
 ships=>^James/Steve$=>Bucky/Steve
 ships=>^Lady/Thor$=>Loki/Thor
 ships,genre=>^[fF]rost[iI]ron( - [fF]reeform)?$=>Loki/Tony
 genre=>^[aA]ftermath of ([sS]exual [aA]ssault|[vV]iolence|[wW]ar)$=>Aftermath of Trauma
 genre=>^Age Regression.*$=>De-aging
 genre=>^Alcohol Abuse(/Alcoholism)?^$=>Substance Abuse
 genre=>^Alpha/Beta/Omega Dynamics$=>Omega Verse
 genre=>^Alternate Reality$=>Alternate Universe
 genre=>^([aA]lternate [uU]niverse) -(.*)$=>\1\,\2
 genre=>^(Loki.*|Steve.*|Tony.*|Thor.*|Light) [aA]ngst$=>Angst
 genre=>^[aA]ngst and [fF]luff and [sS]mut$=>Angst\,Fluff\,smut
 genre=>^[aA]ngst (and|with( a)?) [hH]appy [eE]nding$=>Angst\,Happy Ending
 genre=>^([aA]ngst) and (.*)$=>Angst\,\1
 genre=>^[aA]sexual (.*)$=>Asexual!\1
 genre=>^Attempted Rape/Non-Con$=>Attempted Rape
 genre=>^(.*) (au|AU)$=>\1\,\2
 genre=>^[aA][uU]( [uU]niverse)?$=>Alternate Universe
 genre=>^Avenger Loki$=>Avenger!Loki
 genre=>^(Book 4.*|Harry Potter and the Goblet of Fire)$=>4th Year
 genre=>^[bB]ottom Severus( Snape?)=>bottom!Severus
 genre=>^([cC]anonical|[iI]mplied/[rR]eferenced) [cC]haracter [dD]eath$=>Character Death
 genre=>^Complete$=>Completed
 genre=>^[cC]rack$=>Humour
 genre=>^(Loki.*|Steve.*|Tony.*|Thor.*) [fF]eels$=>Feels
 genre=>^[fF]emale(\s|!)Loki.*$=>Female Loki
 genre=>^([eE]ventual|dD]omestic) [fF]luff=>Fluff
 genre=>^([fF]luff) and (.+)=>Fluff\,\1
 genre=>^.* [iI]s [aA] [gG]ood [bB]ro$=>Friendship
 genre=>^[gG]ood Loki$=>Good!Loki
 genre=>^Grief/Mourning$=>Grief-Mourning
 genre=>[hH]umor=>Humour
 genre=>^([eE]motional )?[hH]urt/[cC]omfort$=>Hurt-Comfort
 genre=>^Intersex Loki$=>Intersex!Loki
 genre=>^J[oö]tunn?(\s|!)Loki$=>Jötunn!Loki
 genre=>^Jotunn \| Frost Giant$=>Frost Giant
 genre=>^[mM]emory [lL]oss$=>Amnesia
 genre=>^[mM]ention(s)? of (.*)=>\1
 genre=>^[mM]ild (.*)=>\1
 genre=>^[nN]orse [rR]eligion &amp; [lL]ore$=>Norse Mythology
 genre=>^.*[oO][oO][cC]=>Out of Character
 genre=>^Past [aA]buse$=>Abuse
 genre=>^[pP]ast Child Abuse$=>Child Abuse
 genre=>^[pP]ast Torture$=>Aftermath of Torture
 genre=>(.*)?Post-Traumatic Stress Disorder(.*)?=>PTSD
 genre=>^Pre-Avengers \(2012\)$=>Pre-Avengers
 genre=>^Post-Avengers \(2012\)$=>Post-Avengers
 genre=>^Pre-Avengers: Age of Ultron \(Movie\)$=>Pre-Avengers: Age of Ultron
 genre=>^Post-Avengers: Age of Ultron \(Movie\)$=>Post-Avengers: Age of Ultron
 genre=>^Pre-Thor \(2011\)$=>Pre-Thor
 genre=>^Post-Thor \(2011\)$=>Post-Thor
 genre=>^Pre-Thor: The Dark World$=>Pre-Thor: The Dark World
 genre=>^Post-Thor: The Dark World$=>Post-Thor: The Dark World
 genre=>^[pP]rotective.*$=>Protectiveness
 genre=>^([eE]xplicit )?[sS]ex.*$=>smut
 genre=>^([eE]ventual|[sS]hameless) [sS]mut=>smut
 genre=>^Sexual Content$=>smut
 genre=>^[sS]oul [mM]ates$=>Soulmates
 genre=>^[tT]op Harry( Potter)?=>top!Harry
 genre=>(Canon-Typical|Graphic Depictions Of) Violence=>Violence

[www.fanfiction.net]
## fanfiction.net's 'cover' images are really just tiny thumbnails.
## Change this to false to use them anyway.
never_make_cover: false
## Remove author image exclusion
##cover_exclusion_regexp:
## April 2015, ffnet changed their story and user pictures urls to be
## the same.  Now the only way to know if the story image is really
## the author image is to go get the author image and check.
skip_author_cover:false
sort_ships:true
add_to_custom_columns_settings:
 favs=>#kudos
 reviews=>#reviews
replace_metadata:
 category=>.*Harry Potter.*=>Harry Potter Works
 category=>.*Marvel.*|.*Avengers.*|.*Iron Man.*|.*Thor.*|.*Loki.*|^Captain America.*=>Marvel Universe
 genre=>Humor=>Humour
 genre=>Parody=>Humour
 characters=>^A\. Bones$=>Amelia Bones
 characters=>^A\. Sinistra$=>Aurora Sinistra
 characters=>^Albus D\.$=>Albus Dumbledore
 characters=>^Albus S\. P\.$=>Albus Severus Potter
 characters=>^Charlie W\.$=>CHarlie Weasley
 characters=>^Dolores U\.$=>Dolores Umbridge
 characters=>^Draco M\.$=>Draco Malfoy
 characters=>^Eileen P\.$=>Eileen Snape
 characters=>^F\. Flitwick$=>Filius Flitwick
 characters=>^G\. Ollivander$=>Garrick Ollivander
 characters=>^Ginny W\.$=>Ginny Weasley
 characters=>^Harry P\.$=>Harry Potter
 characters=>^Hermione G\.$=>Hermione Granger
 characters=>^James P\.$=>James Potter
 characters=>^James S\. P\.$=>James Sirius Potter
 characters=>^Lily Evans P\.$=>Lily Potter
 characters=>^Lily Luna P\.$=>Lily Luna Potter
 characters=>^Lucius M\.$=>Lucius Malfoy
 characters=>^Luna L\.$=>Luna Lovegood
 characters=>^Minerva M\.$=>Minerva McGonagall
 characters=>^Narcissa M\.$=>Narcissa Malfoy
 characters=>^Neville L\.$=>Neville Longbottom
 characters=>^OC$=>Original Character
 characters=>^P\. Sprout$=>Pomona Sprout
 characters=>^Pansy P\.$=>Pansy Parkinson
 characters=>^Petunia D\.$=>Petunia Dursley
 characters=>^Poppy P\.$=>Poppy Pomfrey
 characters=>^Remus L\.$=>Remus Lupin
 characters=>^Ron W\.$=>Ron Weasley
 characters=>^Severus S\.$=>Severus Snape
 characters=>^Sirius B\.$=>Sirius Black
 characters=>^Tobias S\.$=>Tobias Snape
 characters=>^Voldemort$=>Tom Riddle Jr.
 ships=>^Draco M\./Harry P\.=>Draco/Harry
 ships=>^Harry P\./Severus S\.$=>Harry/Severus
 ships=>^Hermione G\./Ron W\.$=>Hermione/Ron
 ships=>^Hermione G\./Severus S\.$=>Hermione/Severus
 ships=>^Lily Evans P\./Severus S\.$=>Lily/Severus
 ships=>^Minerva M\./Severus S\.$=>Minerva/Severus
 characters=>^Agent Phil Coulson$=>Phil Coulson
 characters=>^Black Widow/Natasha R\.$=>Natasha Romanov
 characters=>^Captain America/Steve R\.$=>Steve Rogers
 characters=>^Hawkeye/Clint B\.$=>Clint Barton
 characters=>^Iron Man/Tony S\.$=>Tony Stark
 characters=>^Loki L\.$=>Loki
 characters=>^Kakashi H\.$=>Kakashi Hatake&&category=>Naruto
 characters=>^Naruto U\.$=>Naruto Uzumaki&&category=>Naruto
 characters=>^Naruko U\.$=>Naruto Uzumaki&&genre=>Female Naruto
 characters=>^Sakura H\.$=>Sakura Haruno&&category=>Naruto
 characters=>^Sasuke U\.$=>Sasuke Uchiha&&category=>Naruto
 characters=>^Itachi U\.$=>Itachi Uchiha&&category=>Naruto
 characters=>^Hinata H\.$=>Hinata Hyuuga&&category=>Naruto
 characters=>^Mikoto U\.$=>Mikoto Uchiha&&category=>Naruto
 characters=>^Iruka U\.$=>Iruka Umino&&category=>Naruto
 ships=>^Naruto U\./Sasuke U\.$=>Naruto/Sasuke
 ships=>^Hinata H\./Sasuke U\.$=>Hinata/Sasuke
 ships=>^Sakura H\./Sasuke U\.$=>Sakura/Sasuke
 characters=>^Orihime I\.$=>Orihime Inoue
 characters=>^Ulquiorra$=>Ulquiorra Cifer
 ships=>^Orihime I\./Ulquiorra$=>Orihime/Ulquiorra
 characters=>^Kyo S\.$=>Kyo Sohma
 characters=>^Tohru H\.$=>Tohru Honda
 characters=>^Haruhi F\.$=>Haruhi Fujioka
 characters=>^Tamaki S\.$=>Tamaki Suoh
 characters=>^Ritsuka A\.$=>Ritsuka Aoyagi
 characters=>^Soubi A\.$=>Soubi Agatsuma
 characters=>^Seifer A\.$=>Seifer Almasy
 characters=>^Rinoa H\.$=>Rinoa Heartilly
 characters=>^Squall L\.$=>Squall Leonhart
 characters=>^Zell D\.$=>Zell Dincht
 characters=>^Kaname K\.$=>Kaname Kuran
 characters=>^Yuuki C\.$=>Yuuki Cross
 characters=>^Zero K\.$=>Zero Kiryu

## ffnet is sensitive to too many hits.  Users are sensitive to long
## waits during the initial metadata collection in the foreground.
## When used, these settings will speed up metadata downloads in the
## foreground linearly.
tweak_fg_sleep:true
min_fg_sleep:1.0
max_fg_sleep:4.0
max_fg_sleep_at_downloads: 10

[www.walkingtheplank.org]
username:XXXXXXXX
password:XXXXXXXX
add_to_include_subject_tags:,rating,characters,warnings
add_to_custom_columns_settings:
 reviews=>#reviews
 reads=>#aufrufe
sort_ships:true
replace_metadata:
 characters=>Harry Potter&&category=>Harry Potter Works
 ships=>Harry Potter/Severus Snape=>Harry/Severus
 genre=>^AU - Non-Magical$=>Alternate Universe\,Non-Magical

[www.potionsandsnitches.org]
include_in_genre: genre,warnings
##add_to_extra_titlepage_entries:,stars,reviews,reads,takesplaces,snapeflavours,sitetags
add_to_custom_columns_settings:
 stars=>#frogs
 reviews=>#reviews
 reads=>#aufrufe
replace_metadata:
 genre=>^Action/Adventure$=>Adventure
 genre=>^Hurt/Comfort$=>Hurt-Comfort
 takesplaces=>^0 - Pre Hogwarts.*$=>Pre Hogwarts\,Kid Fic
 takesplaces=>^8 - Post Hogwarts.*$=>Post Hogwarts
 takesplaces=>^8 - Pre Epilogue.*$=>Pre Epilogue
 takesplaces=>^9 - Post Epilogue.*$=>Post Epilogue
 snapeflavours=> Snape=>!Severus
 snapeflavours=>^Comforting!Severus$=>Comforting!Severus\,Hurt-Comfort
 category=>Harry Potter=>Harry Potter Works
 category=>Colleague Snape and Harry=>Colleagues\,Harry &amp; Severus
 category=>^Comrades Snape and Harry$=>Comrades\,Friendship\,Harry &amp; Severus
 category=>^Guardian Snape$=>Guardian/Mentor\,Harry &amp; Severus
 category=>Parental (Snape|Harry)=>Family\,Guardian/Mentor\,Harry &amp; Severus
 category=>^Snape Equal Status to Harry$=>Harry Equal Status to Severus
 category=>^Teacher Snape$=>Teacher!Severus
 category=>^Trusted Mentor Snape$=>Mentor!Severus\,Guardian/Mentor\,Harry &amp; Severus
 category=>^Healer Harry$=>Healer!Harry
 sitetags=>^Child fic$=>Kid Fic
 sitetags=>!Snape$=>!Severus
 sitetags=>^Kidnapped$=>Kidnapping
 characters=>^Albus Severus$=>Albus Severus Potter
 characters=>^Arthur$=>Arthur Weasley
 characters=>^Bellatrix$=>Bellatrix Lestrange
 characters=>^Draco$=>Draco Malfoy
 characters=>^Dudley$=>Dudley Dursley
 characters=>^Dumbledore$=>Albus Dumbledore
 characters=>^Flitwick$=>Filius Flitwick
 characters=>^Fred George$=>Fred Weasley\,George Weasley
 characters=>^Ginny$=>Ginny Weasley
 characters=>^Hagrid$=>Rubeus Hagrid
 characters=>^Harry$=>Harry Potter
 characters=>^Hermione$=>Hermione Granger
 characters=>^James Sirius$=>James Sirius Potter
 characters=>^Lily$=>Lily Evans
 characters=>^Lily Luna$=>Lily Luna Potter
 characters=>^Lucius$=>Lucius Malfoy
 characters=>^Luna$=>Luna Lovegood
 characters=>^McGonagall$=>Minerva McGonagall
 characters=>^Molly$=>Molly Weasley
 characters=>^Neville$=>Neville Longbottom
 characters=>^Petunia$=>Petunia Dursley
 characters=>^Pomfrey$=>Poppy Pomfrey
 characters=>^Remus$=>Remus Lupin
 characters=>^Ron$=>Ron Weasley
 characters=>^Shacklebolt$=>Kingsley Shacklebolt
 characters=>^Sinistra$=>Aurora Sinistra
 characters=>^Snape$=>Severus Snape
 characters=>^Tonks$=>Nymphadora Tonks
 characters=>^Umbridge$=>Dolores Umbridge
 characters=>^Vernon$=>Vernon Dursley
 characters=>^Voldemort$=>Tom Riddle Jr.
 characters=>^Wormtail$=>Peter Pettigrew
 warnings=>^Abusive Dursleys$=>Abuse
 warnings=>^(Alcohol|Drug) [uU]se$=>Substance Abuse
 warnings=>^Out of Character$=>OOC
 warnings=>^Romance/(Het|Slash)$=>Romance
 warnings=>^[sS]elf [hH]arm$=>Self-Harm

[www.hpfandom.net]
include_in_genre: genre,warnings
sort_ships:true
add_to_custom_columns_settings:
 reviews=>#reviews
 reads=>#aufrufe
exclude_metadata_pre:
 characters==Other
 category==Slash
replace_metadata:
 category=>^Harry Potter$=>Harry Potter Works
 characters=>^Harry$=>Harry Potter
 characters=>^Severus$=>Severus Snape
 characters=>^Hermione$=>Hermione Granger
 characters=>^Remus$=>Remus Lupin
 characters=>^Draco$=>Draco Malfoy
 characters=>^Ron$=>Ron Weasley
 characters=>^Lucius$=>Lucius Malfoy
 characters=>^Narcissa$=>Narcissa Malfoy
 characters=>^Tom Riddle$=>Tom Riddle Jr.
 characters=>^Voldemort$=>Tom Riddle Jr.
 characters=>^Arthur$=>Arthur Weasley
 characters=>^Bellatrix$=>Bellatrix Lestrange
 characters=>^Hagrid$=>Rubeus Hagrid
 characters=>^Minerva$=>MInerva McGonagall
 characters=>^Tonks$=>Nmphodora Tonks
 characters=>^Fred$=>Fred Weasley
 characters=>^George$=>George Weasley
 characters=>^Ginny$=>Ginny Weasley
 characters=>^Molly$=>Molly Weasley
 characters=>^Dumbledore$=>Albus Dumbledore
 characters=>^Remus$=>Remus Lupin
 characters=>^Sirius$=>Sirius Black
 characters=>^Luna$=>Luna Lovegood
 characters=>^Neville$=>Neville Longbottom
 characters=>^Original Character$=>OC
 characters=>^Dean$=>Dean Thomas
 characters=>^Pansy$=>Pansy Parkinson
 characters=>^Seamus$=>Seamus Finnegan
 characters=>^Moody$=>Alastor Moody
 characters=>^James$=>James Potter
 characters=>^Lily$=>Lily Potter
 genre=>^Action/Adventure$=>Adventure
 genre=>^Angst/Tragedy$=>Angst
 genre=>^Chan .*$=>Underage
 genre=>^Horror/Supernatural$=>Supernatural
 genre=>^Humor/Parody$=>Humour
 genre=>^Hurt/Comfort$=>Hurt-Comfort
 genre=>^Mystery/Suspense$=>Mystery
 genre=>^(PWP|Sexual Situations)$=>smut
 genre=>^slight dub-con$=>Dubious Consent
 genre=>^Some Sex/Violence§=>smut\,Violence
 genre=>^Songfics$=>Song Fic

[www.restrictedsection.org]
username:XXXXXXXX
password:XXXXXXXX

[ficwad.com]
#username:XXXXXXXX
#password:XXXXXXXX

[www.fictionalley.org]
#is_adult:true

[www.harrypotterfanfiction.com]
#is_adult:true

[www.fimfiction.net]
#is_adult:true
#fail_on_password:XXXXXXXX


## This section will override anything in the system defaults or other
## sections here.
[overrides]
## default varies by site.  Set true here to force all sites to
## collect series.
#collect_series: true


Thank you for looking into it!
firefoxxy is offline   Reply With Quote
Old 08-17-2016, 06:20 PM   #1463
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by firefoxxy View Post
Hi Jimm
Sorry for my late reply - I'm travelling...

It's this issue:

Here's my (complete) personal.ini:

Thank you for looking into it!
If you run in debug mode, you can pick out the relevant error:

Code:
FFF: ERROR: 2016-08-17 17:08:49,210: calibre_plugins.fanficfare_plugin.fanficfare.story(588): Exception with replacement line,value:(genre=>^[mM]ention(s)? of (.*)=>\1),(Mention of Suicide - Not Severus or Harry)
The line with the problem is this:

Code:
 genre=>^[mM]ention(s)? of (.*)=>\1
...with matching "Mention of Suicide - Not Severus or Harry". Because there's no s, the first paren group is empty--that's the 'unmatched group'.

There's no need for the parens around the s because it's a single letter. You can use this instead:

Code:
 genre=>^[mM]entions? of (.*)=>\1
If, for some other pattern, you do need more than one character, you can use (?:...) "A non-capturing version of regular parentheses."

Code:
 genre=>^[mM]ention(?:s)? of (.*)=>\1
JimmXinu is offline   Reply With Quote
Old 08-17-2016, 07:35 PM   #1464
Montana Harper
book geek (she/her)
Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.
 
Montana Harper's Avatar
 
Posts: 116
Karma: 2029154
Join Date: Sep 2013
Location: Pacific Northwest
Device: iPhone 16 Pro Max, Kindle Paperwhite (10th gen)
Quote:
Originally Posted by JimmXinu View Post
- Add options for controlling Anthology book comments on the Standard Columns config tab.
This is amazing and works great, thank you!

Quote:
Originally Posted by JimmXinu View Post
I guess it was four years ago now that I implemented that and then didn't hear anything when I asked for comments on it.
I must've missed that — or perhaps I was shy about asking for changes back then. Either way, this change works great, too, on both regular and anthology epubs!

As I was testing it, I ran into a weird error that I remember occasionally getting and that I haven't worried about before, but since I'm already here:

Code:
calibre, version 2.64.0
ERROR: Unhandled exception: <b>KeyError</b>:"There is no item named u'OEBPS/cover.xhtml' in the archive"

calibre 2.64 [64bit]  embedded-python: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: Quick Preferences (1, 4, 1) && Find Duplicates (1, 6, 2) && Job Spy (1, 0, 53) && Marvin XD (1, 2, 4) && Resize Cover (1, 0, 2) && DOC Input (1, 0, 1) && Consolidate All Library Metadata (2, 0, 26) && Goodreads (1, 1, 11) && Overdrive Link (1, 43, 0) && Goodreads Sync (1, 9, 0) && Open With (1, 5, 9) && Generate Cover (1, 5, 21) && FictionDB (1, 0, 10) && EpubMerge (2, 0, 12) && Read MP3 AudioBook metadata (1, 0, 79) && View Manager (1, 3, 2) && KindleUnpack - The Plugin (0, 81, 2) && Extract ISBN (1, 4, 4) && Import List (1, 1, 5) && Library Codes (1, 0, 27) && Drop Search Results (1, 0, 5) && Manage Series (1, 2, 8) && Wiki Reader (2, 1, 0) && Quality Check (1, 9, 11) && FanFicFare (2, 3, 5) && Count Pages (1, 6, 9) && Barnes & Noble (1, 2, 14) && Reading List (1, 6, 6) && EpubSplit (2, 1, 2) && iOS reader applications (1, 4, 7, 0, 0) && Annotations (1, 4, 7) && Modify ePub (1, 3, 13) && Search The Internet (1, 7, 6) && MultiColumnSearch (1, 0, 68) && Overdrive Link (1, 43, 0)
Traceback (most recent call last):
  File "calibre_plugins.fanficfare_plugin.fff_plugin", line 775, in update_anthology
  File "calibre_plugins.fanficfare_plugin.fanficfare.epubutils", line 19, in get_dcsource
  File "calibre_plugins.fanficfare_plugin.fanficfare.epubutils", line 54, in get_update_data
  File "zipfile.py", line 959, in read
  File "zipfile.py", line 975, in open
  File "zipfile.py", line 933, in getinfo
KeyError: "There is no item named u'OEBPS/cover.xhtml' in the archive"
Thoughts? Generally, I just open the site page and copy the URL and use FFF to make a new epub of it, then delete the old listing in Calibre. It loses me any custom metadata, but that hasn't been too big a deal.
Montana Harper is offline   Reply With Quote
Old 08-17-2016, 07:51 PM   #1465
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Montana Harper View Post
As I was testing it, I ran into a weird error that I remember occasionally getting and that I haven't worried about before, but since I'm already here:

Code:
...
Traceback (most recent call last):
  File "calibre_plugins.fanficfare_plugin.fff_plugin", line 775, in update_anthology
  File "calibre_plugins.fanficfare_plugin.fanficfare.epubutils", line 19, in get_dcsource
  File "calibre_plugins.fanficfare_plugin.fanficfare.epubutils", line 54, in get_update_data
  File "zipfile.py", line 959, in read
  File "zipfile.py", line 975, in open
  File "zipfile.py", line 933, in getinfo
KeyError: "There is no item named u'OEBPS/cover.xhtml' in the archive"
That error appears to be from an EPUB that has metadata for a cover, but doesn't contain the cover (x)html file indicated in the metadata.

Do you use other tools to manipulate covers or other metadata in your EPUBs? If so, I'm inclined to believe one of them may be misbehaving, or may have misbehaved in the past.

If you can send me an EPUB that exhibits the error (use the 'o' key in Calibre and copying it from internal directory rather than Save), I may be able to pinpoint it better.

Quote:
Originally Posted by Montana Harper View Post
Thoughts? Generally, I just open the site page and copy the URL and use FFF to make a new epub of it, then delete the old listing in Calibre. It loses me any custom metadata, but that hasn't been too big a deal.
Why open the site page again? You can drag or copy the story URL from the Calibre 'Ids' link directly--assuming you have it showing.
JimmXinu is offline   Reply With Quote
Old 08-17-2016, 10:27 PM   #1466
Montana Harper
book geek (she/her)
Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.
 
Montana Harper's Avatar
 
Posts: 116
Karma: 2029154
Join Date: Sep 2013
Location: Pacific Northwest
Device: iPhone 16 Pro Max, Kindle Paperwhite (10th gen)
Quote:
Originally Posted by JimmXinu View Post
That error appears to be from an EPUB that has metadata for a cover, but doesn't contain the cover (x)html file indicated in the metadata.

Do you use other tools to manipulate covers or other metadata in your EPUBs? If so, I'm inclined to believe one of them may be misbehaving, or may have misbehaved in the past.

If you can send me an EPUB that exhibits the error (use the 'o' key in Calibre and copying it from internal directory rather than Save), I may be able to pinpoint it better.

Why open the site page again? You can drag or copy the story URL from the Calibre 'Ids' link directly--assuming you have it showing.
I use Generate Cover and in the past I've occasionally used the built-in Polish Books function to replace the existing cover with a new one -- for example, when someone does a fanart cover for a story. I'll see if I can find one with the error and send it to you.

I had no idea that I could drag & drop the story URL from the Calibre link. I'll do that from now on. Thanks!
Montana Harper is offline   Reply With Quote
Old 08-17-2016, 11:02 PM   #1467
Montana Harper
book geek (she/her)
Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.
 
Montana Harper's Avatar
 
Posts: 116
Karma: 2029154
Join Date: Sep 2013
Location: Pacific Northwest
Device: iPhone 16 Pro Max, Kindle Paperwhite (10th gen)
Quote:
Originally Posted by JimmXinu View Post
If you can send me an EPUB that exhibits the error (use the 'o' key in Calibre and copying it from internal directory rather than Save), I may be able to pinpoint it better.
Here's one. Thanks for checking it out for me.
Attached Files
File Type: epub Misfire - mothlights.epub (308.4 KB, 170 views)
Montana Harper is offline   Reply With Quote
Old 08-18-2016, 07:44 AM   #1468
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
very much, Jimm!
firefoxxy is offline   Reply With Quote
Old 08-18-2016, 11:15 AM   #1469
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Montana Harper View Post
I use Generate Cover and in the past I've occasionally used the built-in Polish Books function to replace the existing cover with a new one -- for example, when someone does a fanart cover for a story. I'll see if I can find one with the error and send it to you.
This is being caused by an undesirable interaction between Polish Book and covers inside Anthologies. Polish Book is apparently removing (renaming?) the cover.xhtml file inside a sub-book simply because of the file name.

I have some ideas, but I have fix my MythTV that died yesterday first.
JimmXinu is offline   Reply With Quote
Old 08-18-2016, 04:02 PM   #1470
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,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by JimmXinu View Post
This is being caused by an undesirable interaction between Polish Book and covers inside Anthologies. Polish Book is apparently removing (renaming?) the cover.xhtml file inside a sub-book simply because of the file name.
Here's what's going on:

- EpubMerge (which is what FanFicFare uses to create anthologies) puts the contents of each sub-book, including the covers, in directories inside the epub. EpubMerge's UnMerge is used to update existing anthologies. It extracts the sub-books' files from those directories before running FFF update on each.

- Polish Book uses various heuristics to find existing covers because epubs with misconfigured metadata are unfortunately common. Those heuristics find and remove the saved covers inside the anthology sub-books thinking that they are covers with incorrect metadata. Theoretically, this could be fixed in Polish Book; but given that misconfigured books are probably more common, I don't know that Kovid would accept it. I haven't spent the time to figure out how.

- Because the covers have been removed, after UnMerging, the sub-books fail to parse because the missing cover is still in the UnMerged metadata. That's the error you reported. I can fix that problem by adding code to FanFicFare to handle the missing cover more gracefully. But it kicks the problem down the road because:

- FFF re-uses the existing sub-books as-is if they didn't need new chapters. So they are still missing the cover.xhtml file when they get re-merged, which causes EpubMerge to end up with references to missing files. This causes problems with TOC links.

- I can fix that problem in turn by adding code to EpubMerge to handle missing files more gracefully. The sub-book covers have still been removed, but at least it's not failing. That leads to the next problem:

- UnMerge assumes that the sub-books are the only content in the epub. Covers added to the merged book are discarded during the UnMerge when anthologies are updated. So now Polish has removed the individual book covers and UnMerge has removed the overall cover that Polish added.

Here's what could be done about it:

- Don't Polish anthologies. Not an intuitive solution, but that's what can be done today. Modify Epub (PI) doesn't appear to cause the same problems.

- I can publish the changes mentioned to better handle missing files in FanFicFare and EpubMerge. That will prevent outright failures, but does potentially lead to cover 'erosion' as described above. These changes probably be added regardless, for the benefit of existing Polished anthology books.

- I can at least partially address cover 'erosion' if I add code to save and reuse anthology overall covers. But where does that end? What if somebody's added a metadata jacket file? Other files? I don't want to go down that road, but I might for covers only.

- Modify Polish Book to not effect anthology sub-books. I'm not sure how complex that would be, or if Kovid would accept it.
JimmXinu 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 03:02 AM.


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