08-26-2013, 12:30 PM | #1681 | |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
That's what I consider optimal. |
|
08-26-2013, 01:34 PM | #1682 |
Connoisseur
Posts: 89
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
|
Oh, "Created" is changed whenever the epub is modified? I'd thought that field meant "when this story was first added to Calibre" and didn't change after that. That's a piece of information that I didn't need to know for anything and so I ignored it. If it updates whenever the epub file is changed then I'll switch over to using that, it's exactly what I need.
|
Advert | |
|
08-26-2013, 01:38 PM | #1683 | |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
It will also be 'now' if you run 'update metadata only'. |
|
08-26-2013, 08:34 PM | #1684 | |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
I've posted additional comments and a couple patches to the bug report. I hope to convince Kovid to include one patch or the other. |
|
08-26-2013, 11:29 PM | #1685 | |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
So attached is a version that will only update author links (and therefore last_modified on all those authors' books) when the link actually changes. Kovid also says "Note that the next release will also not mark books as dirty if you set the same value as before for the author link." But we don't necessarily want to wait that long. UPDATE Aug 28, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 08-28-2013 at 11:39 AM. Reason: Remove obsolete beta versions |
|
Advert | |
|
08-27-2013, 12:58 AM | #1686 |
Bujavid tekikin
Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
|
Oooh thank you for the quick work! *makes grabby hands* Will having books marked as dirty do anything nasty to the database though?
|
08-27-2013, 10:46 AM | #1687 |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
No. 'Dirty' in programming terms means something that has been changed and needs to be saved. He just means that the books won't be saved (which is what updates last_modified) if the value is 'set', but isn't actually changed.
|
08-27-2013, 12:17 PM | #1688 |
Bujavid tekikin
Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
|
Ah, good to know. 'Dirty' can mean different things in various contexts, so I wasn't completely sure what was meant.
|
08-27-2013, 06:15 PM | #1689 |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Version 1.7.38 - 24 Aug 2013
|
08-28-2013, 12:20 AM | #1690 | |
Connoisseur
Posts: 89
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
|
That better error reporting thing might just have raised its first flags. Testing out my new system using the "Created"/"Packaged" date, I went and grabbed 1200 fanfics off of fanfiction.net that were a mixture of ones I had already and new ones. I ran into 12 instances of the error:
Quote:
I tried redownloading the twelve and the errors all popped up again, so this is repeatable for me at least. The fanfics in question are: Quote:
Last edited by FaceDeer; 08-28-2013 at 01:59 AM. Reason: nothing new on my laptop |
|
08-28-2013, 10:39 AM | #1691 | |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
It looks like it's always done that and before the attempt to set the author link just failed silently. Attached is a temporary version that gets it past error, but doesn't fix the fundamental problem. I'll need to research that a bit more first--I'm not sure how to get calibre to accept '&' or 'and' in a single author's name. UPDATE Aug 28, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 08-28-2013 at 11:39 AM. Reason: Remove obsolete beta versions |
|
08-28-2013, 11:13 AM | #1692 |
Connoisseur
Posts: 89
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
|
http://www.fanfiction.net/s/9622698/1/ has an author name with "with" in it instead of "and" or "&", Calibre might be splitting on that too.
What a clever program. |
08-28-2013, 11:26 AM | #1693 | |
Well trained by Cats
Posts: 29,784
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code:
ID: authors_split_regex By default, calibre splits a string containing multiple author names on ampersands and the words "and" and "with". You can customize the splitting by changing the regular expression below. Strings are split on whatever the specified regular expression matches, in addition to ampersands. Default: r'(?i),?\s+(and|with)\s+' |
|
08-28-2013, 11:37 AM | #1694 | |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
But that doesn't allow authors with '&' (that part is hard coded) and tweaks affect all libraries and books. (FYI, calibre changes '&' in an author name to ';'. There's no working around that.) |
|
08-28-2013, 11:38 AM | #1695 |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Here is a version that I think addresses the author splitting issue.
UPDATE Aug 31 2013 -- Remove obsolete beta versions Last edited by JimmXinu; 08-31-2013 at 04:37 PM. Reason: Remove obsolete beta versions |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Count Pages | kiwidude | Plugins | 1750 | 04-07-2024 01:20 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Resize Cover | kiwidude | Plugins | 95 | 03-16-2024 11:55 PM |
[GUI Plugin] Find Duplicates | kiwidude | Plugins | 1096 | 03-16-2024 11:28 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |