12-19-2008, 07:18 PM | #1 |
Connoisseur
Posts: 63
Karma: 244
Join Date: Dec 2008
Location: Dubai
Device: Sony PRS-T1
|
Shadow version of Calibre GUI with deDRM capabilities?
Not available in the real world(?) but soon or later, some mind-twisted DRM hater might like the idea to modify the source code of the Calibre GUI to include access to deDRM tools. Moreover, his burning hatred for DRM might drive him to distribute such version via unofficial channels
What would the Calibre developers and the public have to say about that? 1) 2) : 3) Let's ban this guy from the board for even mentioning it 4) I will drag you in a court of law 5) What do you think? You're the only one here not to have that version of Calibre yet 6) Been there, done that. I made my own but I am not using or distributing it because it is illegal 7) ... |
12-19-2008, 08:38 PM | #2 |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Well I think it's a good idea, but branching the code is a bad idea. You'll never be able to keep up to Kovid's development schedule. Soon you'll have an obsoleted calibre
I'd recommend you work with Kovid's branch to allow the ability to run/apply a script to the eBook. Make the scripts downloadable or give the the ability to add a python script just like you can with a recipe. As for shipping calibre with the DRM hacks, you'll probably get a law suit slapped or even criminal charges pressed. (not from here and I don't know how accurate this assumption is) Try this approach There is a company they make a product called "ArmyBuilder". They build armies for table top game systems. in order to get around copyright laws they don't ship the product with other companies table top rules and army lists. However after you install the product they have a feature that downloads the latest rules and armies from a remote server Something like this is the best way to do it so calibre is free from any implications. Also having the ability to execute scripts on an eBook is a great feature to have as it will give a lot of flexibility to folks that want to enhance calibre without having to be part of the calibre project =X= Last edited by =X=; 12-19-2008 at 08:40 PM. |
Advert | |
|
12-19-2008, 09:35 PM | #3 |
Connoisseur
Posts: 63
Karma: 244
Join Date: Dec 2008
Location: Dubai
Device: Sony PRS-T1
|
Yes that would be great if Calibre gave the capability to run a user selected script on the selected books / formats.
How difficult would that be Kovid? That might get pretty high in the "bribe for an added feature" list that you were talking about in another thread. |
12-19-2008, 10:22 PM | #4 |
creator of calibre
Posts: 44,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Adding a filetype plugins shouldn't be too hard. One hook to run plugins on the input file as a preprocessor and one hook as a postprocessor on the output file.
|
12-19-2008, 10:38 PM | #5 |
Connoisseur
Posts: 63
Karma: 244
Join Date: Dec 2008
Location: Dubai
Device: Sony PRS-T1
|
what format would the scripts or plugins be? Python scripts?
|
Advert | |
|
12-19-2008, 10:47 PM | #6 |
creator of calibre
Posts: 44,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The plugins would have to be python scripts, but it is trivial to write python wrappers around an executable in another language.
|
12-19-2008, 10:56 PM | #7 |
Connoisseur
Posts: 63
Karma: 244
Join Date: Dec 2008
Location: Dubai
Device: Sony PRS-T1
|
Cool. I think this would be really great, that kind of capability is actually what makes software like Mozilla so powerful and so popular. Should we make a feature request? Have you implemented the "bribe for feature" thing? Can't seem to find that thread anymore.
|
12-20-2008, 02:28 AM | #8 |
creator of calibre
Posts: 44,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This one I'll do for free, it's on my todo list anyway
|
12-24-2008, 02:42 PM | #9 |
creator of calibre
Posts: 44,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Released version 119 with support for plugins. My private install of calibre now transparently strips the DRM from my purchased MOBI files
I haven't documented how to create plugins as yet, but the code is well commented in src/calibre/customize/__init__.py and src/calibre/customize/builtins.py Just create a .py plugin name it something_plugin.py and add it to a zip file. You can then use the config dialog or the calibre-customize command to add the plugin to your calibre installation. Right now there is support for creating plugins to perform arbitrary transformations by file type on import into the database, just before a any2* tool is run and just after a any2* tool is run. In addition all the metadata reading/writing code has been plugin-ized. |
12-24-2008, 02:49 PM | #10 |
Grand Sorcerer
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
|
12-24-2008, 03:00 PM | #11 |
creator of calibre
Posts: 44,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Given calibre's already modular design, it only took me about 8hrs to do
Eventually calibre's entire conversion pipeline will be pluginized. |
12-24-2008, 03:12 PM | #12 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
wow, brilliant idea. nice work kovid, already adapted !
i've just installed the latest version of calibre, who can help me with a plugin + setup for stripping mobi drm ? a plugin for convert lit would be stellar as well... hm, maybe it should be done via pm by the way, just to be sure there is nothing "over the line" on the forum... |
12-24-2008, 04:19 PM | #13 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
We need a canonical example that does not strip DRM. The kindlefix script has played this role for command line tools, but, because it does not strip DRM, it isn't very useful in Calibre.
|
12-24-2008, 05:21 PM | #14 |
creator of calibre
Posts: 44,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There are example plugins in builtins.py
|
12-24-2008, 09:17 PM | #15 |
Zealot
Posts: 130
Karma: 96
Join Date: Aug 2008
Location: metro Atlanta, GA
Device: Sony Reader PRS-505
|
Well, if I can get the plug-ins I need and instructions of how to install, I'll pony up again - I would love a one stop product for handling my .lit and .mobi files.
My laptop crashed day before yesterday and 6 hours spent the next day and a couple of hours the following, and I finally have my program laden laptop running again. But, it was a pain tracking down all the files I needed to be able to handle my books. So I'm curious - would this really be a compatible experience to adding a plug in to zen-cart? I don't touch the .php files except in a dire situations, but I can quite easily nab a plugin and download and unzip and move to the correct folder and have new functionality - or will it be more involved - a lot more involved? Michelle |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre GUI behavior between machines | phenomshel | Calibre | 2 | 08-21-2010 07:28 PM |
Editing Capabilities in calibre | GJN | Calibre | 3 | 12-21-2009 06:59 PM |
Calibre 0.6.10 GUI crashes on startup | Wagenius | Calibre | 1 | 09-03-2009 02:53 AM |
Mobi2mobi GUI has died again/New version? | AlexBell | Kindle Formats | 8 | 12-10-2008 09:13 PM |
Calibre GUI crash on convert | aapezzuto | Calibre | 1 | 08-02-2008 07:39 PM |