04-29-2015, 10:22 AM | #106 | ||
Evangelist
Posts: 435
Karma: 572984
Join Date: Jan 2010
Location: Long Island
Device: Kobo Libra 2, Kindle 4, Nook Gl4, Nook STR, REB 1100, Ebookwise 1500,
|
Quote:
Quote:
As for @eschwartz's suggestion I can't really say one way or the other which would be better - stored to the epub or a cache db. I will say that I personally rarely use the Embed Metadata or Polish Books features and I've never used it on more than the book I'm currently working on. |
||
04-29-2015, 12:18 PM | #107 |
Plugin Developer
Posts: 6,524
Karma: 4277237
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Version 2.2.4 - 29 Apr 2015
|
Advert | |
|
04-30-2015, 04:46 AM | #108 | |||
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I've come across a very odd problem. This search term no longer works for me:
Quote:
Here's a link for a file it doesn't recognize as being incomplete: http://archiveofourown.org/works/3697334 I also have a problem with some of my replaced metadata. I have this in my personal.ini: Quote:
Another one is: Quote:
What can I have done wrong? Last edited by Tanjamuse; 04-30-2015 at 07:14 AM. |
|||
04-30-2015, 09:05 AM | #109 |
Enthusiast
Posts: 49
Karma: 2652
Join Date: Jan 2014
Device: Samsung Galaxy J2
|
Changing the lines to these should work if I what I think is happening is true.
Code:
category=>Kane Chronicles$=>The Kane Chronicles category=>The Kane Chronicles - Rick Riordan$=>The Kane Chronicles category=>Kane Chronicles - Rick Riordan$=>The Kane Chronicles category=>Kane Cronicles$=>The Kane Chronicles Code:
characters=>Grissom$=>Gil Grissom characters=>Gil Grisson$=>Gil Grissom characters=>Gill Grissom$=>Gil Grissom You can be lazy too and simply add at the end a replacement for "Gil Gil Grissom" to turn into "Gil Grissom". I have done it at times while I figured out how to do otherwise and there is probably a few still left here. And Jimn I don't think I posted yet so great work on the transition and thanks again for maintaining and adding to this great plugin, really awesome how useful it is and how you keep to it though all this time. Last edited by chrnno; 04-30-2015 at 09:16 AM. |
04-30-2015, 09:07 AM | #110 | |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
How do you explain this one:
Quote:
Last edited by Tanjamuse; 04-30-2015 at 09:09 AM. |
|
Advert | |
|
04-30-2015, 10:06 AM | #111 |
Enthusiast
Posts: 49
Karma: 2652
Join Date: Jan 2014
Device: Samsung Galaxy J2
|
That should work properly so presumably there is another replacement somewhere doing it. I presume that if you remove it does it show as "The The"? If yes then use search to track down the other replacement.
Last edited by chrnno; 04-30-2015 at 10:08 AM. |
04-30-2015, 10:09 AM | #112 | |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Quote:
|
|
04-30-2015, 10:20 AM | #113 |
Enthusiast
Posts: 49
Karma: 2652
Join Date: Jan 2014
Device: Samsung Galaxy J2
|
I meant removing the entire line but this was presuming the problem was the same as previous so disregard it.
Now that you posted your entire code though I suggest moving the first line to the end as that will allow for the possibility of any of the lines 3 to 10 being preceded by a 'The'* and might be the problem here though even if it isn't then at least covers for the future. If not then what story are you using so I can see the original metadata? Or just post that works too. *Basically if the original metadata is, for example, "The Lord of the Rings: Return of the King" As you have written it then the result would be "The Lord of The Rings (Movies)". Last edited by chrnno; 04-30-2015 at 10:22 AM. |
04-30-2015, 10:40 AM | #114 | ||
Plugin Developer
Posts: 6,524
Karma: 4277237
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Quote:
chrnno is correct that the ordering is tripping you up. However, I believe I've explained before that you can use the real power of regular expressions to reduce the number of replacement lines you have considerably. For example, I think these two lines will match all of the cases you showed: Code:
category=>^.*Kane Ch?ronicles.*$=>The Kane Chronicles characters=>^.*Grisso[mn]$=>Gil Grissom |
||
04-30-2015, 10:42 AM | #115 |
Plugin Developer
Posts: 6,524
Karma: 4277237
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
|
04-30-2015, 12:16 PM | #116 | |
Enthusiast
Posts: 49
Karma: 2652
Join Date: Jan 2014
Device: Samsung Galaxy J2
|
Quote:
Code:
category=>(^.*Harry .*Pott?er.*$|^.*HP.*$)=>Harry Potter Code:
category=>^.*Rowling.*$=>Harry Potter Code:
category=>^.*Hobbit.*(Tolkien|Book|Novel).*$=>The Hobbit(Book) category=>^.*Lord of the Rings.*(Tolkien|Book|Novel).*$=>Lord of the Rings(Book) category=>^.*Hobbit.*$=>The Hobbit(Movie) category=>^.*Lord of the Rings.*$=>Lord of the Rings(Movie) |
|
04-30-2015, 12:31 PM | #117 | |||
Plugin Developer
Posts: 6,524
Karma: 4277237
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Quote:
Quote:
The best way to find out what regex will do is try them. And FanFicFare will help you out there. In personal.ini you can define test stories and give them whatever metadata you want to try out: Code:
[teststory:1003] title:Some Other Title category_list:Thor (Movies),Marvel Cinematic Universe,The Avengers (Marvel Movies),Captain America (Movies),xyz,Harry Potter,a little bit fluff,angst and fluff,Hurt/Comfort,Percy Jackson and the Olympians & Related Fandoms - All Media Types characters_list:Fred Weasley,George,Frigga (mom),Wesley W.P.,Wesley WaP. genre_list:Action,Romance chaptertitles:Prologue,Chapter 1\, Xenos on Cinnabar,Chapter 2\, Sinmay on Kintikin,3. Chapter 3,Chapter 4,Chapter 5,Chapter 6,Chapter 7,Chapter 8 ships_list:Thor/Jane,Bob rating:G |
|||
04-30-2015, 12:46 PM | #118 | |||
Enthusiast
Posts: 49
Karma: 2652
Join Date: Jan 2014
Device: Samsung Galaxy J2
|
Quote:
Quote:
Quote:
And thank you for the answer and so quickly at that. Last edited by chrnno; 04-30-2015 at 12:50 PM. |
|||
04-30-2015, 06:09 PM | #119 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2014
Device: none
|
Receiving a NoneType error ('NoneType' object has no attribute '__getitem__') for stories from FicWad. This is with both the previous 2.2.3 version and after updating today also with the newer 2.2.4 version.
|
05-01-2015, 11:00 AM | #120 | |
Plugin Developer
Posts: 6,524
Karma: 4277237
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
|
|
Tags |
fanfiction |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 494 | 05-18-2024 02:34 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 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 |