![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 117
Karma: 2097
Join Date: Feb 2010
Device: none
|
Device plugin development
Hi,
is there any documentation about the device plugins? API etc. And what do I have to so that calibre finds the plugin? |
![]() |
![]() |
![]() |
#2 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 117
Karma: 2097
Join Date: Feb 2010
Device: none
|
Quote:
I tried to install my plugin: Code:
$ calibre-customize -a PB302.zip Traceback (most recent call last): File "/usr/bin/calibre-customize", line 16, in <module> sys.exit(main()) File "/usr/lib/calibre/calibre/customize/ui.py", line 396, in main plugin = add_plugin(opts.add_plugin) File "/usr/lib/calibre/calibre/customize/ui.py", line 235, in add_plugin plugin = load_plugin(path_to_zip_file) File "/usr/lib/calibre/calibre/customize/ui.py", line 74, in load_plugin raise InvalidPlugin(_('No valid plugin found in ')+path_to_zip_file) calibre.customize.ui.InvalidPlugin I managed to get my plugin working, by adding it in calibre/customize/builtin.py but that does not seem to be the best way. |
|
![]() |
![]() |
![]() |
#4 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Hopefully someone with experience will be by and point you in a direction that will help. Last edited by DoctorOhh; 03-29-2010 at 06:48 AM. |
|
![]() |
![]() |
![]() |
#5 | ||
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 117
Karma: 2097
Join Date: Feb 2010
Device: none
|
Quote:
Quote:
![]() I just got another question: I don't like the way calibre puts each ebook in a subdir: "author/title/title-author.epub". If the book is no series, then it should be like this: "author/title-author.epub" and if it is a serie, it should be like this: "author/series/title-author.epub". The first part is pretty easy, but unfortunatelly the second is not. When the function upload_books() is called, it gets some metadata. Unfortunatelly the series is just one of the tags and not separate, so there is no way to find out which tag is the series. |
||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,290
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I am glad you only read series written by a single Author.
You don't need Calibre to manage such a simple series set at all. And since you only read EPUB files, you don't have to worry about Multiple formats of the Same document, so you don't need a Title folder to hold them all. |
![]() |
![]() |
![]() |
#7 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 117
Karma: 2097
Join Date: Feb 2010
Device: none
|
First: I like it some other way, so I try to change it. That's the good thing about open source. I'm not whining at somebody to change it for me.
Quote:
On my PC this folder per title has it's benefits and I don't want to change it there, but why would I need multiple formats on my ebook reader? |
|
![]() |
![]() |
![]() |
#8 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
You might want to start a new thread with this question so it gets the proper attention. ![]() |
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Reader42: A question - are you talking about the oganization within the Calibre library on the ahrd disk or how they are stored on your Reader device? I am not sure from your posts!
|
![]() |
![]() |
![]() |
#10 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 117
Karma: 2097
Join Date: Feb 2010
Device: none
|
I guess my posts where a bit confusing, I'll try again:
I want to write a plugin for my ebookreader (PB302), so I can use calibre to copy ebooks to my reader. I used one of those as start and changed it. Then I zipped it and tried to install it. With the gui I get no feedback. Using the command-line (calibre-customize), I get the error message shown above. Then I copied the file to the folder, where all the built-in plugins are and added it in the calibre/customize/builtin.py. Now it works but I'm wondering if that is the prefered way to do this. My next step is to change the way the directories are created on the reader. But maybe it is really better to discuss this in another thread. |
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,276
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You have to name the py file in the zip file ending with
_plugin.py |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
DR800 Plugin development for DR800/DR1000 | yuri_b | iRex Developer's Corner | 0 | 09-18-2010 09:46 AM |
Device interface plugin - nook | badmadbug | Plugins | 2 | 09-06-2010 11:03 AM |
Difference between emulator and real device (developing uds plugin for djvu) | luite | iRex | 7 | 03-03-2010 08:55 PM |
iRex announces development of colour device for 2011 delivery | HarryT | News | 57 | 06-09-2009 10:04 AM |
Calibre plugin development - Newbie problems | minstrel | Plugins | 5 | 04-12-2009 12:44 PM |