![]() |
#1456 |
Enthusiast
![]() 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.
|
![]() |
![]() |
![]() |
#1457 |
Junior Member
![]() ![]() Posts: 4
Karma: 114
Join Date: Apr 2012
Device: iPhone
|
![]()
Hi,
First, I love this plug-in ![]() 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. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#1458 | ||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
![]() Quote:
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 |
||
![]() |
![]() |
![]() |
#1459 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
![]() |
![]() |
![]() |
![]() |
#1460 | |
book geek (she/her)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 116
Karma: 2029154
Join Date: Sep 2013
Location: Pacific Northwest
Device: iPhone 16 Pro Max, Kindle Paperwhite (10th gen)
|
Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#1461 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
![]() 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. |
|
![]() |
![]() |
![]() |
#1462 | |
Zealot
![]() 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:
Spoiler:
Thank you for looking into it! |
|
![]() |
![]() |
![]() |
#1463 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
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) Code:
genre=>^[mM]ention(s)? of (.*)=>\1 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 Code:
genre=>^[mM]ention(?:s)? of (.*)=>\1 |
|
![]() |
![]() |
![]() |
#1464 | ||
book geek (she/her)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 116
Karma: 2029154
Join Date: Sep 2013
Location: Pacific Northwest
Device: iPhone 16 Pro Max, Kindle Paperwhite (10th gen)
|
Quote:
Quote:
![]() 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" |
||
![]() |
![]() |
![]() |
#1465 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#1466 | |
book geek (she/her)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 116
Karma: 2029154
Join Date: Sep 2013
Location: Pacific Northwest
Device: iPhone 16 Pro Max, Kindle Paperwhite (10th gen)
|
Quote:
I had no idea that I could drag & drop the story URL from the Calibre link. ![]() |
|
![]() |
![]() |
![]() |
#1467 |
book geek (she/her)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 116
Karma: 2029154
Join Date: Sep 2013
Location: Pacific Northwest
Device: iPhone 16 Pro Max, Kindle Paperwhite (10th gen)
|
Here's one. Thanks for checking it out for me.
|
![]() |
![]() |
![]() |
#1468 |
Zealot
![]() Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
|
![]() |
![]() |
![]() |
![]() |
#1469 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
I have some ideas, but I have fix my MythTV that died yesterday first. |
|
![]() |
![]() |
![]() |
#1470 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,984
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
- 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. |
|
![]() |
![]() |
![]() |
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 |