New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Processing an ACSM file added via a plugin #56
Comments
Thanks for the report - that plugin sounds like a great idea. This is very likely to be a bug in Calibre where it doesn't correctly hand over the downloaded file to all the plugin(s). There used to be similar bugs in Calibre in the past - bug 1945889 for eBooks added through the auto-add functionality and bug 1992244 for eBooks added through the web server; both of which resulted in broken metadata. It's likely that this (adding books through Calibre's download_ebook function) has a very similar bug. I'm going to try and reproduce this, and when I confirmed it's a Calibre bug I'll open a bug report on their bug tracker to hopefully get this fixed. |
Just tested it myself, this is most likely a Calibre bug. I'll open a bug report. |
Bug report: https://bugs.launchpad.net/calibre/+bug/2025355 |
Thanks so much for your help! |
The reported calibre bug has been fixed, so this can be closed as far as I am concerned. |
Bug description
I've been using your plugin together with DeDRM to download from the library. The library is a non-US library and cannot send directly to the Kindle so calibre + DeACSM + DeDRM has been a real life saver.
I'm working on a plugin that downloads the .acsm. The plugin doesn't do much else except call calibre to download the .acsm file and depends on DeACSM and DeDRM to do the heavy lifting.
The problem is that the epub from the plugin downloaded .acsm does not contain any meta data at all. The epub is otherwise fine and viewable from calibre. My calibre setup seems fine because dragging a downloaded .acsm into calibre works perfectly (full meta, cover, title, author, etc).
Log from processing plugin-provided .acsm
Log from processing downloaded .acsm
The plugin is very much in a draft state so I'm not quite ready to publish it publicly. But briefly, the plugin calls calibre's
download_ebook()
with a custom browser instance that sends the required auth HTTP headers.Operating system
MacOS
Which version of Calibre are you running?
6.21.0
Which version of the ACSM Input plugin are you running?
v0.0.16
Import type
No response
Further information
No response
The text was updated successfully, but these errors were encountered: