Sideloaded kepubs not added to library correctly
If a sideloaded kepub is added back to the library, it is added as an epub. But, the file is corrupt. It appears that only part of the file is copied. This was reported and discussed in http://
The attached patch is only a partial fix. It fixes the copy so that the epub file is created correctly, the metadata is extracted and the epub can be read. But, some more work needs to be done to complete the support of kepubs in calibre. This includes a MetadataReaderP
Also, this does not affect purchased kepubs. These will still be blocked from being added to the calibre library.