03-12-2013, 12:17 AM | #1231 |
Connoisseur
Posts: 89
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
|
That's correct, the links are one-way from group to story. Stories can be added to groups without the involvement of the author so it wouldn't really be proper for them to appear on the story page itself, the author might not appreciate it if the StoriesThatSuck group added it or whatever (there actually was a problem with a group along those lines on FiMFiction for a while until it got shut down by the administrators).
I was also trying to make sure this suggestion was useful in contexts other than just FiMFiction, too, and I figured it was hard to get more generic than "here's a list of fanfic links, apply this category to them when you download/update them." Anyway, having a temporary mark applied to the most recent batch of downloads would be a good middle-ground option, I think. It's an extra step but it would allow me to add group tags to a completely different special column devoted entirely to that rather than mixing it in with the generic tags, which would make the tagging safe from harm should I ever accidentally or intentionally take off the "keep existing tags" option. |
03-12-2013, 03:05 PM | #1232 |
Plugin Developer
Posts: 6,313
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Here's a test version that uses calibre's 'marked' feature to mark all added, updated and even failed books.
There's a new config option "Show added/updated books when finished". When checked, FFDL will automatically display all successfully added/update books when it finishes. (They will display in the order they were given--convenient for series or series like sets.) FFDL will always mark the books, even if you don't have that checked, so you can also manually search for 'marked:ffdl_success'. 'marked:ffdl_failed' is also available, or search 'marked:ffdl' for both. calibre only has one 'marked' field, so these are available only until you run FFDL again or something else that uses it. View List from Reading List, Quality Check, etc. UPDATE Mar 13 13 - Remove obsolete beta versions Last edited by JimmXinu; 03-13-2013 at 06:04 PM. Reason: Remove obsolete beta versions |
Advert | |
|
03-12-2013, 11:24 PM | #1233 |
Connoisseur
Posts: 89
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
|
Works great, thanks!
|
03-13-2013, 06:04 PM | #1234 |
Plugin Developer
Posts: 6,313
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Here's another, newer version with the 'marked' feature.
This version actually implements keeping the story order correctly and 'marked:ffdl_success' and 'marked:ffdl_failed' in all cases instead of just most cases. However, it also makes several changes to the way things are handled internally, so there's more risk of bugs in previously solid features. UPDATE Mar 14, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 03-14-2013 at 03:10 PM. Reason: Remove obsolete beta versions |
03-14-2013, 03:06 PM | #1235 |
Plugin Developer
Posts: 6,313
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Yet Another Test Version--this one performs the error column library update on all-failed more correctly. Which changes how the all-failed case is reported to everybody, not just the ones who use error column. But it also makes it the same as the successful case, so I'll call it an improvement.
As always, please give it a try and report if you have any problems. Thanks. UPDATE Mar 15, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 03-16-2013 at 12:40 AM. Reason: Remove obsolete beta versions |
Advert | |
|
03-15-2013, 05:51 PM | #1236 |
Plugin Developer
Posts: 6,313
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Version 1.7.13 - 15 Mar 2013
Starting with calibre 0.9.23, calibre offers a command-line interface (CLI) for calling plugins. This plugin supports that option and allows the user to call the plugin's basic functionality from outside calibre without having to install Python or get the plugin's files separately. (Note that at this time, FFDL via calibre CLI will use your personal.ini settings from your library, but does not add to or update your library.) Details: Code:
Usage: calibre-debug.exe --run-plugin FanFictionDownLoader -- [options] <storyurl> Options: -h, --help show this help message and exit --library-path=LIBRARY_PATH, --with-library=LIBRARY_PATH Path to the calibre library. Default is to use the path stored in the settings. -f FORMAT, --format=FORMAT write story as FORMAT, epub(default), mobi, text or html -c CONFIG, --config=CONFIG read config from specified file(s) in addition to calibre plugin personal.ini, ~/.fanficdownloader/personal.ini, and ./personal.ini -b START, --begin=START Begin with Chapter START -e END, --end=END End with Chapter END -o NAME=VALUE, --option=NAME=VALUE set an option NAME=VALUE -m, --meta-only Retrieve metadata and stop. Or, if --update-epub, update metadata title page only. -u, --update-epub Update an existing epub with new chapters, give epub filename instead of storyurl. --update-cover Update cover in an existing epub, otherwise existing cover (if any) is used on update. Only valid with --update-epub. --force Force overwrite of an existing epub, download and overwrite all chapters. -l, --list Get list of valid story URLs from page given. -d, --debug Show debug output while downloading. |
03-15-2013, 07:03 PM | #1237 |
Enthusiast
Posts: 48
Karma: 1056
Join Date: Jul 2012
Location: Central Canada
Device: Sony PRS-T1, RIM Playbook & Z10, Samsung Note, MacOSX
|
I’m having three categories of difficulty:
reviews/favs/follows >3 digits long, strings containing “()” and strings containing “&”. I’m using Mac OS 10.7.5, calibre 0.9.22, and Fanfiction Downloader 1.7.12 1) I’ve got custom columns for reviews/favs/follows on Fanfiction.net. I formatted them the same way that the instructions for the Count Pages plugin tells us to format the custom columns for “words” and “pages” i.e.: {0:,} When the number of reviews (or favs or follows) is shorter than four digits, this works fine, when there are more, I get : “invalid literal for int() with base 10: ‘1,276’” where 1,276 is the number of reviews in question. Does FanFiction Downloader handle numbers differently than Count Pages does? Apologies if this counts as a silly question to someone who knows what the formatting means. I looked in http://docs.python.org/2/library/string.html, and failed to find an answer. Sample link for a shortish story: http://www.fanfiction.net/s/6483644/1/ Also note, that other custom columns settings after reviews were aborted. Meaning, that the numerical ones showed undefined, despite being shorter than four digits, and assorted replacements that would normally happen didn’t. 2) With round brackets in fandoms and character names on AO3, I haven’t been able to get anything to work successfully. I’ve tried \(, [(] and even .* for the segment containing the brackets e.g.: characters=>(^Henry.*$)=>Henry Mills&&category=>Once Upon a Time.* to try to get character and variants: “Henry (Once Upon a Time)” on stories in fandom: “Once Upon a Time (TV)” In all cases, it’s as though the line doesn’t exist. Here’s a sample story link: http://archiveofourown.org/works/545044 3) I’m doing a character format replacement that works fine in fandoms without an &, and weirdly for one that does. So here’s a working example with site: fanfiction.net, fandom: Pitch Perfect, character Chloe B., and a non-working one with fanfiction.net, fandom: Rizzoli & Isles, character: Jane R. I have four places I want characters to show up: 1) Tags, 2) #characters custom column, 3) Titlepage, 4) logpage. In Tags (1), I want the format “ch fandom: character” (e.g.: ch Pitch Perfect: Chloe Beale), in the other three I want “fandom.character” (e.g.: Pitch Perfect.Chloe Beale) I’ve got this to work by having: extra_valid_entries:edchars edchars_label: Characters by fandom include_in_edchars:characters custom_columns_settings: edchars=>#characters,n replace_metadata: characters=>(^Chloe B\.$)=>Chloe Beale&&category=>Pitch Perfect characters=>(.+)=>ch Pitch Perfect: \1&&category=>Pitch Perfect edchars=>(ch Pitch Perfect: )=>Pitch Perfect. characters=>J\. Rizzoli=>Jane Rizzoli&&category=>Rizzoli & Isles characters=>(.+)=>ch Rizzoli & Isles: \1&&category=>Rizzoli & Isles edchars=>(ch Rizzoli & Isles: )=>Rizzoli & Isles. and putting edchars into tittlepage_entries and extra_logpage_entries For fandoms without an & this works fine. For some reason, with Rizzoli & Isles, it doesn’t. I can’t get the four to match up correctly. a) if edchars=>(ch Rizzoli & Isles: )=>Rizzoli & Isles. I get 1, 3, 4, right, and 2 wrong, i.e.: 1 and 2 prints “ch fandom: character”, and 3 and 4 shows “fandom.character” b) if edchars=>(ch Rizzoli & Isles: )=>Rizzoli & Isles. I get 1, 2, 3, 4 right, but the title page doesn’t show in the book details, or if there is already a title page, it doesn’t update properly. c) if edchars=>(ch Rizzoli & Isles: )=>Rizzoli & Isles. I get 1 and 2 right, and 3 and 4 wrong. i.e.: 1, 3, 4, as “ch fandom: character” and 2 as “fandom.character” d) if edchars=>(ch Rizzoli & Isles: )=>Rizzoli & Isles. I get the same results as c. Why? And how do I fix it? Here’s a sample link for Rizzoli & Isles: http://www.fanfiction.net/s/8813042/1/ Here’s a sample link for Pitch Perfect: http://www.fanfiction.net/s/8770999/ Last edited by seabream; 03-15-2013 at 07:05 PM. Reason: accidentally had a - instead of a _ |
03-15-2013, 08:14 PM | #1238 | ||
Plugin Developer
Posts: 6,313
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
I suppose I should change those to a number--or at least strip non-digits--for users who want to use non-US-en number formatting. In the mean time, you could use replace_metadata to strip ',' from those entries. Quote:
I don't even understand the question yet for your part 3. I'll need more time to read that again a couple times. |
||
03-16-2013, 01:06 AM | #1239 |
Plugin Developer
Posts: 6,313
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
@seabream -
Attached is a version that fixes your problems 1 & 3. I cannot replicate your problem 2. Run these fake story URLs in FFDL. They demonstrate issues 2 & 3 without having to hit real servers: http://test1.com?sid=80 [Rizzoli & Isles] http://test1.com?sid=81 [Pitch Perfect] http://test1.com?sid=82 [Henry (Once Upon a Time), Once Upon a Time (TV)] This is the replace_metadata code I was testing with: Code:
extra_valid_entries:edchars edchars_label: Characters by fandom include_in_edchars:characters add_to_custom_columns_settings: edchars=>#characters replace_metadata: characters=>(^Henry.*$)=>Henry Mills&&category=>Once Upon a Time.* characters=>(^Chloe B\.$)=>Chloe Beale&&category=>Pitch Perfect characters=>(.+)=>ch Pitch Perfect: \1&&category=>Pitch Perfect edchars=>(ch Pitch Perfect: )=>Pitch Perfect. characters=>(^J\. Rizzoli$)=>Jane Rizzoli&&category=>Rizzoli & Isles characters=>(.+)=>ch Rizzoli & Isles: \1&&category=>Rizzoli & Isles edchars=>(ch Rizzoli & Isles: )=>Rizzoli & Isles. Do you realize that your category.character system doesn't work for crossover stories? Fake story http://test1.com?sid=83 demos a Rizzoli & Isles X Pitch Perfect story. Each character ends up with both categories: "Rizzoli & Isles.Pitch Perfect.Chloe Beale, Rizzoli & Isles.Pitch Perfect.J. Rizzoli" If you're already creating lines for each character name filtered by category, that's probably where you need to add the category to the character, too. UPDATE Mar 16, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 03-16-2013 at 10:46 AM. Reason: Remove obsolete beta versions |
03-16-2013, 10:45 AM | #1240 |
Plugin Developer
Posts: 6,313
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Here's a new test version that also address some new fimfiction.net changes.
UPDATE Mar 18 2013 -- Remove obsolete beta versions Last edited by JimmXinu; 03-18-2013 at 12:48 PM. Reason: Remove obsolete beta versions |
03-16-2013, 08:52 PM | #1241 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2012
Device: Kindle & Kindle 4
|
I don't know if this is a problem related to something on my end, or if it's just something to deal with every update, but my personal.ini settings are being changed back to the default settings the last three times I've updated FFDL. I've had to keep a txt file on my computer to copy and paste to/from. I thought that the personal.ini wasn't supposed to be affected during updates? Have I misunderstood somewhere or is calibre glitching my settings somehow?
I updated calibre to 0.9.23 before I updated FFDL to 1.7.13. |
03-16-2013, 09:34 PM | #1242 |
Plugin Developer
Posts: 6,313
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
@Linwe,
When you say update, do you mean calibre update or FFDL update? What is your OS type and version? Are you using 32 or 64bit calibre? Are you doing anything atypical, like a USB stick install? FFDL keeps personal.ini and all it's settings in the calibre database for each library. Many other plugins store their config the same way. You should not need to re-enter them after updates. |
03-17-2013, 09:24 AM | #1243 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2012
Device: Kindle & Kindle 4
|
@Jimm,
I updated both calibre and FFDL, but it's been the last few FFDL updates that's reverted the personal settings. I'm using Windows 7 64-bit; 64bit calibre. I have calibre portable on a USB stick, but it's the non-portable version on my computer that I use primarily for everything (portable is more for the organization when I travel between places) and that has reset itself. I didn't think I needed to re-enter them, I hadn't for other updates just these last couple that have been off for me. |
03-17-2013, 12:21 PM | #1244 |
Plugin Developer
Posts: 6,313
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
That's the same setup I use. Are you counting the beta versions I post when you say the last couple updates, or just official releases?
How FFDL stores it's prefs hasn't changed, but I did make a change to where in the code it does it. But that's only just been released in 1.7.13. Looking back, do I see in your past posts that you used to edit the contents of the plugin zip file? Might you have ended up with more than one copy of the zip file? |
03-17-2013, 07:24 PM | #1245 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2012
Device: Kindle & Kindle 4
|
I can only assume it'd be the official releases - I usually don't update until calibre tells me there are plugin updates waiting.
I use to edit the zip yes, because silly me couldn't figure out how to use the personal.ini. Once I did I uninstalled and then reinstalled to prevent "cross contamination" so-to-speak. Maybe that's what I need to do again, just to clean the slate. :/ |
|
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 |