Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-20-2010, 11:55 AM   #16
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 72,477
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by KevinH View Post
If I am reading the latest version of erdr2pml.py correctly, the metadata is not actually drm'd, it just looks like it. The metadata has actually just been XOR'd with a table that is actually present before any decrypting or unshuffling.

So, FWIW it may be possible to read the metadata without actually decrypting an an ereader pdb.
That would be an good work around, and generally useful - fix the PDB metadata reader to also read the metadata in an encrypted PDB. Hmm...
pdurrant is offline   Reply With Quote
Old 02-20-2010, 12:17 PM   #17
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,515
Karma: 24495784
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There are plugins to read metadata from archive files as well. They look for well known ebook types inside the archive and read the metadata from them. If that's not working, please file a bug report, witha test case and I'll take a look.

Quote:
Originally Posted by pdurrant View Post
I've just been looking at the built-in file type plug-ins, and I can see that for most of them reading the metadata from the original file will work.

But what about your Archive Extract Filetype plug-in? Doesn't it have the same problem that my plug-in has - no meta data extracted from the file?

(goes to check)
Yes, it does - If I put a (non-DRMed) Mobipocket file into a zip archive and import it, it imports as a PRC format file, and can be viewed in the viewer, but no metadata has been read for it.

Should I raise an enhancement request for this? Of can you think of a work-around?
kovidgoyal is offline   Reply With Quote
Old 02-20-2010, 12:24 PM   #18
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 72,477
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by pdurrant View Post
That would be an good work around, and generally useful - fix the PDB metadata reader to also read the metadata in an encrypted PDB. Hmm...
Unfortunately, the first section of the eReader file containing indexes to all other interesting sections, including the metadata section and the section used an an xor table is encrypted. So a metadata reader for encrypted PDB files would still need the name and number key to the file, and would need, in a small way, to de-drm the file. I think this would be sufficient to make it a circumvention tool according to the DMCA, and so couldn't be an official part of Calibre.

I don't currently see a way that I can get this to work so long as Metadata is read before the file type plugins are called.

But I'm hoping that those more familiar with Calibre do see a way around this.
pdurrant is offline   Reply With Quote
Old 02-20-2010, 03:19 PM   #19
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 72,477
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by kovidgoyal View Post
If that's not working, please file a bug report, witha test case and I'll take a look.
Reported as bug #4958, sample zipped Mobipocket file attached.
pdurrant is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting file type kevinofengland Calibre 5 10-14-2010 06:10 AM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 01:11 PM
Secure .PDB file to file Kindle will read! Help! mbtravis63 Kindle Formats 2 01-17-2010 05:20 AM
Display File Type and Sort by Type pragmortal Calibre 7 09-21-2009 09:07 PM
file type question dow Sony Reader 22 02-04-2008 11:05 AM


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


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