![]() |
#2731 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
#2732 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
Advert | |
|
![]() |
#2733 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
![]() |
![]() |
![]() |
#2734 |
Junior Member
![]() 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 |
![]() |
![]() |
#2735 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
Advert | |
|
![]() |
#2736 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
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.
|
![]() |
![]() |
#2737 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
|
|
![]() |
![]() |
#2738 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
So while it's technically possible, it would be complicated and not necessarily an improvement. |
|
![]() |
![]() |
#2739 |
Occassional Beta Tester
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
would parse correctly? It's an E-fiction site. My main problems are the Published and Updated dates. I alway get a strftime error. |
![]() |
![]() |
#2740 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
#2741 |
Occassional Beta Tester
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
#2742 |
Occassional Beta Tester
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
|
The plugin assumes nothing of the sort.
![]() |
![]() |
![]() |
#2743 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
#2744 |
Occassional Beta Tester
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
|
I know what to do with the format string.
![]() |
![]() |
![]() |
#2745 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
|
![]() |
||||
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 |