Register Guidelines E-Books Today's Posts Search

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

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 03-19-2012, 10:41 PM   #196
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,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
FYI, New version out with these changes:

- New site: ksarchive.com, thanks to Jade Aislin for implementing this.

- Fixes for mugglenet.com--added user/pass, better handling for summary and is_adult levels.

- Allow default_cover_image to use ${title}, etc; add cover_exclusion_regexp feature to exclude images from being covers.

As usual, there may be a delay before calibre notices the new version. You can get the latest by going in and telling calibre to install it again.
JimmXinu is offline  
Old 03-20-2012, 03:41 AM   #197
cordy
Junior Member
cordy began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2010
Device: Sony PRS 650
Fixed

Quote:
Originally Posted by JimmXinu View Post
@cordy - I don't think you truly have the latest version of either calibre or the plugin.

The error you show at the end says calibre 0.8.40, not 0.8.43. But that shouldn't make any difference for this problem.

The plugin writes it's version to the calibre job log and has for a number of versions now. It should look like this:
Code:
Download FanFiction Book
FanFictionDownLoader v1.5.9
Adding jobs for URLs:
Plus, the line number in the plugin your exception post references is blank, again indicating version mismatch.

If your plugin version is that old, you're probably bumping into the format change ffnet made a while back.

I'm not familiar with portable installs, so I can't help you with that part.
Thanks for helping me... I battled against the plugin for 10 minutes and you where right, it was the very first version installed with the latest overwritten. In fact it was installed twice, and the worked against each other.

Now it's fixed, and your plugin works great on the portable calibre edition.

Thanks
Sam
cordy is offline  
Old 03-25-2012, 12:34 AM   #198
jackr
Connoisseur
jackr has learned how to buy an e-book online
 
Posts: 67
Karma: 92
Join Date: Mar 2011
Device: Nook STR, Pocket eDGe
Fimfiction.net year

Haven't gotten a response back from the site owner of Fimfiction.net after sending them a message a couple weeks ago; I will try sending another soon.

I know that the posts (if there are any) do get dated with a year, but that of course is sketchy for basing the year on. And the stories from the author's creation dashboard (or whatever is a good word for that) have a year on them for "Last Modified", but that doesn't help any if it is not there in the target html.

Oh well, it's ultimately a small thing. Anyways, keep up the awesome work!
jackr is offline  
Old 03-25-2012, 11:24 AM   #199
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,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
@jackr - I expect they'll start thinking about it when the site gets old enough that the story dates become ambiguous.
JimmXinu is offline  
Old 03-25-2012, 05:51 PM   #200
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
Hey there JimmXinu, I just found out about your plugin for Calibre and it is really looking good so far ! The thing is, I wrote my own solution for FanFiction.Net and FictionPress.com quite a while ago, it's called Lemon.

After inspecting your adapter files for the respective sites I thought maybe you could use the two APIs I wrote for them: FanFiction.Net API and FictionPress.com API. They don't introduce any new dependencies besides html5lib (using html5lib in correlation with BeautifulSoup is a good idea anyhow) and even easily parse information that you are currently missing, e.g. the review count (which I would really like to see in the final file if possible).

And I realize, of course, that this is only personal preference but could you adapt the default template to something like this/this/this? The source for the templates used by Lemon can be found here and here. Only if you agree, of course, but quite honestly (no offense): I really think that the templates used by Lemon are an improvement over the ones currently used in the plugin.

Man, I sound like a smug asshole -- but this really isn't my intention, I just want to finally deprecate Lemon for something better and I would be all over your Calibre plugin if you made these small changes.

Last edited by cryzed; 03-25-2012 at 06:27 PM.
cryzed is offline  
Old 03-25-2012, 11:14 PM   #201
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,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
@cryzed -

I'm not really inclined to change FFDL to use your APIs for ffnet and fpcom. If you were offering code for a new site, or significant new functionality, it would be a different matter.

As for review count, I don't see that the value is worth the effort. It's going to be out of date most of the time. FFDL has 25+ different adapters for different sites it would have to be added to. And if FFDL collects review count, why not the recs/favorites/hits counts that many sites have, too?

I've added it to the 'wishlist' of future features, but I don't see it happening any time soon.

(BTW, to counter the argument that review counts could be updated everyday: I strongly recommend everyone use email notices for new chapters, and to not poll all your stories every day for new chapters. It inflates hit counts and wastes bandwidth on the fanfic site. We can only do this as long as we don't annoy the sites enough to block us.)

As for changing the appearance of the output, looking at your screen shots, the only differences between Lemon and FFDL output I noticed are that Lemon doesn't put commas in the word count and it centers the TOC entries. And, predictably, I like the output from FFDL better--because it's the way I like it.

Have you looked at FFDL's personal.ini settings? Specifically, the titlepage_entries, include_tocpage, and output_css options? There's already a fair degree of customization available. (Fair warning--FFDL mobi output doesn't support output_css. In fact, FFDL mobi output is only one step above deprecated. I strongly recommend epub and conversion.)

If you have specific requests, I might be able to add some additional markup to the title and TOC page output for the CSS to influence.

Thanks for your interest.
JimmXinu is offline  
Old 03-26-2012, 03:12 AM   #202
nomad062
Member
nomad062 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2012
Device: kindle
Plugin Download

I'm playing around using Ubuntu and of course one of the first things I downloaded was Calibre - the second thing I wanted was your FFDL plugin. Awesome plugin. Saves me several steps now that I can do it in 1 shot.

At any rate when I went to download your plugin it states that I need Calibre 8.30 or later yet my Calibre says its 8.8. Any idea? or do I need to post something with Calibre?
nomad062 is offline  
Old 03-26-2012, 09:06 AM   #203
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Do an install of calibre from the official web site, and not from the Ubuntu repository.
PeterT is offline  
Old 03-26-2012, 11:38 AM   #204
nomad062
Member
nomad062 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2012
Device: kindle
Thanks for the info!
nomad062 is offline  
Old 03-26-2012, 12:24 PM   #205
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,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
What he said.

0.8.30 is specified because that's the earliest version I've tested it with. There's probably at least a few earlier versions it would work with, but 0.8.8 is too far back--there were significant changes to plugin support around 0.8.18.
JimmXinu is offline  
Old 03-26-2012, 01:07 PM   #206
nomad062
Member
nomad062 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2012
Device: kindle
I guess I was misreading the 8.8 I thought it was more recent than 8.3 but its all fixed now so thank you both for the quick response

Laurin
nomad062 is offline  
Old 03-26-2012, 02:02 PM   #207
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
@JimmXinu all right, I did it myself then -- while I was it I also implemented support for special title entries that allow a degree of customization (e.g. br-tags).

I still think that your code in its current form is really bad: in nearly all your files you have unused partial or even full module imports (sometimes duplicated), nothing that resembles PEP-8, you do some really puzzling things with the encoding/decoding of UTF-8 strings in your code and rely on chardet to guess encodings at times (although I didn't discover where), you use BeautifulSoup but apparently have no clue how to navigate its structure, RegEx is a solution for everything in your code while only making things more complicated (e.g. using it to strip '#' at the end of a string instead of just splitting the string), many of your methods do unexpected things, you use decorators incorrectly (e.g. adapaters.adapter_fanfictionnnet.FanFictionNetSite Adapter.getAcceptDomains), you have many methods that have a "get"-prefix and simply return a constant or unchanged value... and that's only after looking at 3-4 files of your project. That's why I wanted you to use my API modules, many, if not all things, you currently do in the adapter for FanFiction.Net and FictionPress.com could have been simplified.

Things that have me stumped are also that somehow when adding new items to the validEntries list and a corresponding label to the titleLabels list in your base_writer.py code the label is not used like apparently intended in BaseStoryWriter.writeTitlePage and the "NO_TITLE_ENTRY" is used as a template, so one has to actually manually define a "<title_entry>_label" entry in the configuration files -- why do the "fall back labels" exist then in the first place? (I'm sure this one's my fault) Additionally modifying the EPUB_TOC* constants in the EpubWriter class somehow has no effect on the resulting table of contents that is actually created, why is that?

Of course, I realize that my code is surely not perfect either but reading your code is really hard and puzzling -- and that's not because the things you do are complicated: the overall structure is just bad. This time there's no way that I could not have sounded like an asshole, sorry.

Last edited by cryzed; 03-26-2012 at 02:12 PM.
cryzed is offline  
Old 03-27-2012, 10:31 PM   #208
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,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
@cryzed - I'm not going to argue with you about it. I'm not a python expert, nor have I claimed to be. This is a hobby.

If you'd like to contribute any of your changes, please set up a clone to check your changes into and the other developers on the project and I will review them.
JimmXinu is offline  
Old 04-09-2012, 05:00 AM   #209
jackr
Connoisseur
jackr has learned how to buy an e-book online
 
Posts: 67
Karma: 92
Join Date: Mar 2011
Device: Nook STR, Pocket eDGe
I was busy tweaking the look of the Book Details pane today when I learned about how links can be assigned to author names. If you are looking for any new ideas at the moment, having the author link direct to the authors page would be great.
jackr is offline  
Old 04-09-2012, 07:41 AM   #210
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jackr View Post
I was busy tweaking the look of the Book Details pane today when I learned about how links can be assigned to author names. If you are looking for any new ideas at the moment, having the author link direct to the authors page would be great.
In the tag browser, right click on the "Authors" category and select "Manage Authors". The third column in the list is what you want. I don't know how long that has been there, but, I only discovered this in the last couple of weeks.
davidfor is offline  
Closed Thread


Forum Jump

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


All times are GMT -4. The time now is 12:34 PM.


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