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 05-26-2014, 11:17 AM   #2731
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: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
@cryzed -

Background tasks have no ability call any of the GUI APIs, or even any of the library access APIs.
JimmXinu is offline  
Old 05-26-2014, 11:29 AM   #2732
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
Ah, I figured it would be something like that. As always, thanks for the great plugin and I really appreciate your work.
cryzed is offline  
Advert
Old 05-26-2014, 11:31 AM   #2733
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: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
JimmXinu is offline  
Old 05-27-2014, 01:37 AM   #2734
ap_aelfwine
Junior Member
ap_aelfwine began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2014
Device: Nook Tablet
Hello,

I installed Calibre earlier today, and just tried to install the Fanfiction Downloader plugin. Unfortunately, I got the following error message:

calibre, version 1.0.0
ERROR: Plug-in installation failed: A problem occurred while installing this plug-in. This plug-in will now be uninstalled. Please post the error message from the details below into the forum thread for this plug-in and restart Calibre.

Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/dialogs/plugin_updater.py", line 677, in _install_clicked
plugin = add_plugin(zip_path)
File "/usr/lib/calibre/calibre/customize/ui.py", line 361, in add_plugin
plugin = load_plugin(path_to_zip_file)
File "/usr/lib/calibre/calibre/customize/ui.py", line 53, in load_plugin
return loader.load(path_to_zip_file)
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 183, in load
ans.minimum_calibre_version))))
InvalidPlugin: The plugin at /tmp/calibre_1.0.0_tmp_E_LB6s/krddnn.zip needs a version of calibre >= 1.13.0

I'm using Linux Mint 16 Petra with the Cinnamon Desktop on an Acer Aspire One, and I installed Calibre from the Software Manager. I've been wanting a fanfiction downloader ever since FFN decided to disable Flagfic.com, and am really hoping to make this work. I'd be grateful for advice about how to fix this. It looks as if it's calling for a later version of Calibre, but I don't see how to update my installation.

Sorry if this is a stupid newbie question, but I'm only using Linux for a couple of months and this is the first I've ever tried to use Calibre at all.

Thank you very much in advance,
Andrew
ap_aelfwine is offline  
Old 05-27-2014, 02:06 AM   #2735
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
To avoid possible conflicts uninstall the Calibre package with your package manager first and then follow the instructions found here, specifically the "Binary Install" section.

Alternatively you could also check if someone provides a private repository with more up-to-date Calibre packages and add it to your package manager, but that would be more work and more complicated.

Last edited by cryzed; 05-27-2014 at 12:35 PM.
cryzed is offline  
Advert
Old 05-27-2014, 02:47 AM   #2736
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JimmXinu View Post
@cryzed -

Background tasks have no ability call any of the GUI APIs, or even any of the library access APIs.
Well, you could run the story check and metadata fetch in a job, return the result and prompt the user as needed and then start the existing download job. Of course, it wouldn't be as simple as that, but it should work.
davidfor is offline  
Old 05-27-2014, 09:54 AM   #2737
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: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ap_aelfwine View Post
calibre, version 1.0.0
ERROR: Plug-in installation failed: A problem occurred while installing this plug-in. This plug-in will now be uninstalled. Please post the error message from the details below into the forum thread for this plug-in and restart Calibre.
...
InvalidPlugin: The plugin at /tmp/calibre_1.0.0_tmp_E_LB6s/krddnn.zip needs a version of calibre >= 1.13.0
...
cryzed's answer is correct, but didn't explain why. Your Linux version has a fairly old version of caliber and FFDL requires at least calibre v1.13.0.
JimmXinu is offline  
Old 05-27-2014, 09:59 AM   #2738
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: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by davidfor View Post
Well, you could run the story check and metadata fetch in a job, return the result and prompt the user as needed and then start the existing download job. Of course, it wouldn't be as simple as that, but it should work.
Launching a BG job takes several seconds all by itself in my experience. So it would in fact take more time depending on how many URLs and the sites involved. Plus passing complex data to and from BG jobs is limited to objects that can be pickled, as I recall.

So while it's technically possible, it would be complicated and not necessarily an improvement.
JimmXinu is offline  
Old 05-31-2014, 10:48 AM   #2739
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
Hi Jimm,

I have a question. Can you tell me which adapter(s) I should look at so this
Spoiler:
<div class="listbox">
<br><br><b>Summary:</b> The days before the battle and the aftermath. Because there's some fallout coming. <br />
<b>Rating:</b> FRT<br />
<b>Category:</b> <a href='browse.php?type=categories&amp;catid=15'>Buf fy Stories & Crossovers</a> > <a href='browse.php?type=categories&amp;catid=28'>Ave ngers</a><br />
<b>Characters:</b> None<br />

<!-- <b>Challenge:</b> <br /> --><b>Series:</b> <a href="viewseries.php?seriesid=6">Chaos GHS</a><br />
<b>Chapter: </b> 1 <b>Completed:</b> Yes <br />
<b>Words:</b> 14477 <b>Read:</b> 410<br />
<b>Published:</b> 05/29/2014 <b>Updated:</b> 05/29/2014 </div>

would parse correctly?
It's an E-fiction site.
My main problems are the Published and Updated dates. I alway get a strftime error.
Firedancer885 is offline  
Old 05-31-2014, 11:00 AM   #2740
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
Looks like you mean this story? The problem as far as I can tell is that currently only an adapter for the http://imagine.e-fic.com/ site exists, but not for the http://voracity2.e-fic.com/ site. I'm not sure why the plugin assumes the imagine.e-fic.com and voracity2.e-fic.com are the same domains, maybe that should be fixed somewhere, i.e. also respect subdomains.

I'll try and see if I can implement a working adapter module for it.
cryzed is offline  
Old 05-31-2014, 11:28 AM   #2741
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
cryzed,

I'm trying to put together an adapter for the voracity2 site. That's why I asked about the adapters. I'm fairly new to python.
Firedancer885 is offline  
Old 05-31-2014, 11:32 AM   #2742
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
The plugin assumes nothing of the sort. I rewrote another adapter and tested it with the cli version of FFDL. That's when I got the errors.
Firedancer885 is offline  
Old 05-31-2014, 11:36 AM   #2743
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
Ah, I see. You need to create a new adapter module in this case, using the adapter_imagineeficcom.py as a template should help you out. For the datetime parsing I would check out the Python documentation here. Once you figure out the correct format string you need, you can use the makeDate function contained in the base_adapter.py module (compare line 61, 247 and 250 in the adapter_imagineeficcom.py file).

EDIT: Ah now I actually understand the context of your question, I wasn't aware you were trying to develop your own adapter. The advice above should be able to help you along hopefully.
cryzed is offline  
Old 05-31-2014, 11:55 AM   #2744
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
I know what to do with the format string. Even after I wrote in the correct format, the downloader gave an error back. I think the problem is with the whole metadata section (beginning with line 200 of the imagineeficcom adapter.) I uncommented the print statement in the file I rewrote, and checked the output. The voracity2 site gave the code I put in above, so I'm fairly sure there is an issue with the changes in formatting.
Firedancer885 is offline  
Old 05-31-2014, 12:00 PM   #2745
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
Yeah the chapter metadata isn't contained in labels anymore it seems, you would have to fiddle around with the BeautifulSoup parsing.
cryzed is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Count Pages kiwidude Plugins 1846 08-02-2025 10:44 PM
[GUI Plugin] Resize Cover kiwidude Plugins 100 07-10-2025 08:50 AM
[GUI Plugin] Find Duplicates kiwidude Plugins 1124 04-18-2025 09:19 AM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 08:47 PM.


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