I appreciate you all bearing with me while I try to sort this out.
Quote:
Originally Posted by JSWolf
The AZW eBooks still have DRM. DeDRM removes the DRM when you use the viewer if DRM still exists. What you have to do for each AZW eBook is use calibre to open the directory the eBook is in and copy it. Then delete the entry. Now add the eBook back to calibre. DRM should be removed.
|
Okay. If I understand you and BetterRed, your explanation is the following...
- count pages requires the DRM to be removed before it can work (ie it doesn't use the same code/plugin path that calibre e-book viewer uses to access the book data).
- most of the ~6000 books I imported (all except ~200) had the DRM stripped by calibre during import to library and sit on disk DRM-free allowing count-pages to work.
- For some reason ~200 books that were imported at the same time as the others did NOT have the DRM removed during import and so count-pages does not work on these books (even though the calibre e-book viewer does).
- Presumably the problem appearing to be format-specific is because calibre changes the format during import if it successfully strips the DRM (e.g. azw4 and azw which don't count pages get turned into azw3 which does count pages in 100% of the books I have in that format).
As an experiment, I've disabled the deDRM plugin and restarted calibre to check the problem formats (problem formats meaning 100% of books of that format does not count pages vs non-problem formats meaning 100% of books of that format DO count pages). I obviously didn't try to open every single book of a format but just took a sample of 3 books per format. "opens fine" means it opens in calibre ebook viewer and is readable without any error or DRM message.
Problem formats (NONE of these books count pages) - htmlz (10 books) - opens fine (no DRM)
- azw (13 books) - I get DRM message
- azw4 (11 books) - opens fine (no DRM)
- kfx (223 books) - opens fine (no DRM, I have kfx input plugin)
Okay formats (ALL of these books count pages) - azw3 (6240 books) - opens fine (no DRM)
- mobi (385 books) - opens fine (no DRM)
So based on this test, it appears that only the 13 azw format books still have DRM (can't open with DeDRM disabled). However the other problem formats also don't count pages and I have confirmed they don't have DRM but are openable with the calibre ebook viewer.
So while DRM might be a factor for the few azw format books (somehow they didn't import right even though they came at the same time as the others)...it isn't for the other formats that count pages doesn't work on.
This might just come back to count pages plugin not using the same code/plugin path as the calibre ebook viewer and so it can't read these other formats (regardless of DRM)?