Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-04-2015, 10:55 AM   #256
Firedancer885
Occassional Beta Tester
Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.
 
Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
Quote:
Originally Posted by JimmXinu View Post
The latest posted test version already fixes that problem.
Thanks
Firedancer885 is offline   Reply With Quote
Old 06-04-2015, 12:23 PM   #257
Elaine T
Connoisseur
Elaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolate
 
Posts: 58
Karma: 33664
Join Date: Jun 2015
Device: kindle paperwhite
And this morning it worked fine, while it (and others) didn't for the last few weeks.

Thanks anyway.

And yeah, I figured out the run in debug mode after posting - been looking in the plug in menu, not the main one.
Elaine T is offline   Reply With Quote
Advert
Old 06-04-2015, 05:28 PM   #258
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Hello Jimm,

It's me again with a short question. I have this story here
http://archiveofourown.org/works/4063606
and my personal.ini says
Code:
sort_ships:true
replace_metadata:
 ships=>^Loki.*/Steve.*$=>Loki/Steve
But it doesn't work. I altered it to
ships=>Loki.*/Steve.*=>Loki/Steve
ships=>^Steve.*/Loki.*$=>Loki/Steve
ships=>Loki.*/Steve( Rogers)?=>Loki/Steve
and anything inbetween I could think of. But it still does not work...

Could you please help me - what am I doing wrong?
firefoxxy is offline   Reply With Quote
Old 06-04-2015, 05:52 PM   #259
chrnno
Connoisseur
chrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with otherschrnno plays well with others
 
Posts: 50
Karma: 2652
Join Date: Jan 2014
Device: Samsung Galaxy J2
Quote:
Originally Posted by firefoxxy View Post
Hello Jimm,

It's me again with a short question. I have this story here
http://archiveofourown.org/works/4063606
and my personal.ini says
Code:
sort_ships:true
replace_metadata:
 ships=>^Loki.*/Steve.*$=>Loki/Steve
But it doesn't work. I altered it to
ships=>Loki.*/Steve.*=>Loki/Steve
ships=>^Steve.*/Loki.*$=>Loki/Steve
ships=>Loki.*/Steve( Rogers)?=>Loki/Steve
and anything inbetween I could think of. But it still does not work...

Could you please help me - what am I doing wrong?
The order is 'Steve' then 'Loki' and only one of those is correct in that sense so that is the reason for the rest not working. For the one that is correct* I did a few tests and it indeed converts the ship to Loki/Steve so I presume you tested it wrong or have something else messing with it. From a quick test to confirm turning "sort_ship" is applied after replace metadata so that is not it.

*This I mean
Code:
 ships=>^Steve.*/Loki.*$=>Loki/Steve

Last edited by chrnno; 06-04-2015 at 05:58 PM.
chrnno is offline   Reply With Quote
Old 06-04-2015, 07:26 PM   #260
tamiby
Junior Member
tamiby began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: Huawei Ascend Mate 7 with Mantano Reader, Kindle Paperwhite
Hi Jimm!

I've been using version 2.2.6 with no problems so far, but I have stumbled on a story that throws this error:

Quote:
'NoneType' object has no attribute 'next_element'
The story is this one:

I haven't encountered this one before, I hope you can help me

Thanks for all your good work!
tamiby is offline   Reply With Quote
Advert
Old 06-04-2015, 08:40 PM   #261
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by tamiby View Post
Code:
'NoneType' object has no attribute 'next_element'
https://www.fanfiction.net/s/1180369/1/Choices
That particular story has many HTML errors in the first chapter. So many that even the new, more forgiving HTML parser can't handle it.

You can download the rest of it using https://www.fanfiction.net/s/1180369/1/Choices[2-]. then, if you have a little bit of editing skill, you could use your brower's view source and Calibre's book edit feature to add the first chapter manually. It could also help you fix the HTML so it doesn't fail in your reader.
JimmXinu is offline   Reply With Quote
Old 06-05-2015, 04:28 PM   #262
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Hello Jimm

Thank you for the help! I fear that I did not express well what I was doing. I did not write all those tags beneath each other, but replaced the original expression with one after the other, each only one line at a time.

And I always thought that because of the "sort ships" being on the top, it would first sort them alphabetically, and then below search for the line with Loki/Steve being corrected.

So, should I always have two lines for each ship? Like this:
Code:
replace_metadata:
 ships=>^Steve.*/Loki.*$=>Loki/Steve
 ships=>^Loki.*/Steve.*$=>Loki/Steve
 ships=>^Severus.*/Lily.*$=>Lily/Severus
 ships=>^Lily.*/Severus.*$=>Lily/Severus
firefoxxy is offline   Reply With Quote
Old 06-05-2015, 06:07 PM   #263
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by firefoxxy View Post
And I always thought that because of the "sort ships" being on the top, it would first sort them alphabetically, and then below search for the line with Loki/Steve being corrected.

So, should I always have two lines for each ship?
sort_ships is applied after replace_metadata, regardless of order in personal.ini. That's deliberate in case you need to change the site's ship divider to '/' from something else using replace_metadata.

Rather than lines for each ship (which will only break down when you inevitably start hitting trios/quads/orgies/harems), you could have one line for each name:
Code:
replace_metadata:
 ships=>(^|/)(Steve)[^/]*(/|$)=>\1\2\3
 ships=>(^|/)(Loki)[^/]*(/|$)=>\1\2\3
 ships=>(^|/)(Lily)[^/]*(/|$)=>\1\2\3
 ships=>(^|/)(Severus)[^/]*(/|$)=>\1\2\3
## (^|/) beginning of line or a '/'
## (name) to have a \2 to save typing
## [^/]* anything except another /
## (/|$) '/' or end of line
My testing shows these work with any number of '/'s in the ship, but obviously only for the names you've added.

But it looks like what you really want is to only keep the first name of whomever. That can be done, too, but dealing with all three cases (start of line, middle and end of line) in one expression is... complex. (It has to do with overlapping matches.)
Code:
replace_metadata:
 ships=>(?:^|(?<=/))([^ ,:]+)[^/]*(?=/|$)=>\1
## (?:^|(?<=/)) non-capturing grouping of start-of-line or lookbehind matching /
## ([^ ,:]+) one or more chars until the first space, comma or colon
## [^/]* zero or more chars until /
## (?=/|$) lookahead matching / or end-of-line
This also handles cases with : or , after the first name, like Thor: thundergod/Darcy, snarky intern. But it won't work well if you get Doctor Quinn/Doctor McCoy--that will end up as Doctor/Doctor.
JimmXinu is offline   Reply With Quote
Old 06-06-2015, 04:57 AM   #264
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
I'm sure I'm just missing something simple, but I can't see it right now.

When I add from fanfiction.net, I now get a cover image in the files that I don't want. I've changed all cover options (although I'm probably missing the one that will work) and it still shows up. I know that ffnet changed something recently, and you also made generating covers on by default, but I find this extremely annoying.

I also saw once you recommended someone try adding code <skip_author_cover:false> so I tried that with the value true and still no help (I did use the entire code you provided, just didn't reproduce it here).

Any help? What am I missing?
MerlinMama is offline   Reply With Quote
Old 06-06-2015, 10:48 AM   #265
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by MerlinMama View Post
When I add from fanfiction.net, I now get a cover image in the files that I don't want. I've changed all cover options (although I'm probably missing the one that will work) and it still shows up. I know that ffnet changed something recently, and you also made generating covers on by default, but I find this extremely annoying.
Code:
[www.fanfiction.net]
## If set, the epub will never have a cover, even include_images is on
## and the site has specific cover images.
never_make_cover: true
JimmXinu is offline   Reply With Quote
Old 06-06-2015, 11:20 AM   #266
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Thank you! I've created my own covers and prefer using those. Set in my ways for some things...
MerlinMama is offline   Reply With Quote
Old 06-06-2015, 04:39 PM   #267
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Thank you very much Jimm!!
I simply copied your second solution which is exactly what I want (this is much too complex for me getting there by myself...)
As I am very limited to the ships I follow, I have no fear of Doctor/Doctor happening
firefoxxy is offline   Reply With Quote
Old 06-07-2015, 04:00 PM   #268
Ellachanted
Connoisseur
Ellachanted began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Oct 2013
Device: Kindle touch
found it!

Last edited by Ellachanted; 06-07-2015 at 11:31 PM. Reason: found it
Ellachanted is offline   Reply With Quote
Old 06-08-2015, 12:00 AM   #269
tricklem
Connoisseur
tricklem began at the beginning.
 
tricklem's Avatar
 
Posts: 60
Karma: 10
Join Date: Feb 2015
Device: none
Just noticed that I am getting this error when updating my stories from ffpad.

sequence item 0: expected string, int found

And this one when I go to download a new story to my library. Is anyone else having this problem?



Status
Title
Author
Comment
URL
Bad
Unknown
Unknown
sequence item 0: expected string, int found
https://fictionpad.com/author/tufano79/stories/11113
tricklem is offline   Reply With Quote
Old 06-08-2015, 02:33 AM   #270
PandathePanda
a toy panda
PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.PandathePanda ought to be getting tired of karma fortunes by now.
 
PandathePanda's Avatar
 
Posts: 2,568
Karma: 26020474
Join Date: Mar 2014
Location: Onboard the Queen Anne's Revenge
Device: Various Android dvices
Quote:
Originally Posted by tricklem View Post
Just noticed that I am getting this error when updating my stories from ffpad.

sequence item 0: expected string, int found

And this one when I go to download a new story to my library. Is anyone else having this problem?



Status
Title
Author
Comment
URL
Bad
Unknown
Unknown
sequence item 0: expected string, int found
https://fictionpad.com/author/tufano79/stories/11113
Works here. (2.2.4 (or so fff say) and calibre 1.4.8)
PandathePanda is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:36 AM.


MobileRead.com is a privately owned, operated and funded community.