08-17-2013, 11:51 PM | #1606 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
08-18-2013, 01:24 PM | #1607 | |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
So there isn't an easy way to do it. There is, however, a complicated way. You can make two copies of category in new entries, modify those, and then replace the original category with the two new ones. It's not intuitive, but because of the order things get included and replaced it does work. Code:
extra_valid_entries:splitcat1,splitcat2 include_in_splitcat1:category include_in_splitcat2:category include_in_category:splitcat1,splitcat2 replace_metadata: splitcat1=>Magical Girl Lyrical Nanoha=>Lyrical Nanoha splitcat2=>Magical Girl Lyrical Nanoha=>Magical Girl splitcat1=>Puella Magi Madoka Magica/魔法少女まどか★マギカ=>Puella Magi Madoka Magica splitcat2=>Puella Magi Madoka Magica/魔法少女まどか★マギカ=>魔法少女まどか★マギカ |
|
Advert | |
|
08-18-2013, 06:19 PM | #1608 |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
The attached version adds three new config options:
Let me know how this works for you. UPDATE Aug 20 2013 -- Remove obsolete beta versions Last edited by JimmXinu; 08-20-2013 at 09:57 AM. Reason: Remove obsolete beta versions |
08-18-2013, 10:47 PM | #1609 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
On a separate note, have you considered dynamically loading the adapters from a directory? I was playing with one, and each time I made a change, I had to restart calibre. It occurred to me that loading adapters at runtime would make that a lot easier. I had a very brief look at it, and I know it isn't that simple. But, I just remembered that the Annotations plugin is doing this, so that might serve as an example. |
|
08-18-2013, 11:48 PM | #1610 | ||
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Quote:
It's been a couple years since then and I haven't looked at the Annotations plugin. But dynamically loading files would only improve the development loop if it also detected and reloaded updated files. And the number of users who would benefit from it can be counted on one hand, I expect. (I use the CLI when developing new adapters, which side steps the problem neatly.) I have been toying with the idea of adding some sort of user-added code system to allow python code to be entered similar to personal.ini and then called at different points in FFDL's execution to change the story. Pre/post processors for chapter text, metadata, etc. Up to now, however, none of the users wanting the most specific levels of control have had any python skills. It continues to amaze me how much effort people will put into massaging their metadata. By contrast, except for usernames/passwords, this is the entirety of my personal.ini: Spoiler:
|
||
Advert | |
|
08-19-2013, 06:39 AM | #1611 | ||||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
Quote:
Quote:
|
||||
08-19-2013, 10:18 PM | #1612 |
Junior Member
Posts: 9
Karma: 26
Join Date: Nov 2011
Device: Handspring Visor, Android phones, Nook Color, Calibre
|
Jimm,
Thanks, glad that my requests/questions weren't too outrageous. I've been trying since yesterday to reply. Keep getting a timed out token. Will cross my fingers this time it will work. Otherwise, I see you posted a new beta version with this added. I've downloaded and will give it a try. Cheers! --sgr |
08-19-2013, 11:12 PM | #1613 |
Junior Member
Posts: 9
Karma: 26
Join Date: Nov 2011
Device: Handspring Visor, Android phones, Nook Color, Calibre
|
Jimm,
I've tried the new version out with Check for changed story URL? unchecked, and Force Author into Author_Sort? checked. Everything seems to be working. No prompts about the story already being in the library and A Magiluna Stormwriter's name didn't get corrected when AuthorSort was populated. Thanks! --sgr |
08-20-2013, 02:56 AM | #1614 | |
Occassional Beta Tester
Posts: 283
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: Samsung Galaxy Tab 4 (wifi only)
|
Quote:
Firedancer |
|
08-20-2013, 09:35 AM | #1615 |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
True. Except that Tweaks apply to all libraries and shesgottaread specifically said she uses two libraries and only wants to change the fanfiction library.
|
08-20-2013, 09:55 AM | #1616 |
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Version 1.7.36 - 20 Aug 2013
|
08-20-2013, 12:54 PM | #1617 |
Connoisseur
Posts: 89
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
|
Aw man, why did I never think to suggest that author/author sort option myself? That's been minorly bugging me for as long as I've been fanficking with this plugin, the vast majority of author pseudonyms with spaces in them aren't really meant to be treated as name and surname.
Now to update the author sort column for my existing downloads to keep everything consistent. Regexes ahoy, it seems. |
08-20-2013, 02:43 PM | #1618 |
Zealot
Posts: 132
Karma: 1070185
Join Date: Mar 2013
Location: Italy
Device: Kobo Aura HD
|
Hi Jimm for the plugin! I keep my library only for Fanfic, basically, so this is very very helpful
Would the replace metadata not work for, say, publisher? I wanted to do this, but it seems I'm not getting any changes, or maybe I'm not doing it right. Code:
replace_metadata: publisher=>archiveofourown.org=>Archive of Our Own |
08-20-2013, 06:08 PM | #1619 | ||
Plugin Developer
Posts: 6,307
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Quote:
Do this instead: Code:
replace_metadata: site=>archiveofourown.org=>Archive of Our Own |
||
08-20-2013, 06:32 PM | #1620 |
Zealot
Posts: 132
Karma: 1070185
Join Date: Mar 2013
Location: Italy
Device: Kobo Aura HD
|
Thank you so much!
Hah, I thought it was something easy like that, I had taken for granted it was publisher |
|
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 |