calibre-web icon indicating copy to clipboard operation
calibre-web copied to clipboard

Embed metadata on download

Open Dunrar opened this issue 1 year ago • 8 comments

This draft PR depends on #2463. It checks if a Calibre installation has been detected and embeds metadata into a book file on download, using the Calibre CLI.

Right now, it does not work with the GDrive integration, and I'm not sure how to deal with it. I see three options:

  1. Leave it incompatible
  2. Embed metadata into book files before they are being uploaded to GDrive
  3. Download from GDrive to temp, embed the metadata and then create a response with the processed file

I don't like any of them, but would probably prefer option 2, because it does not require two downloads. Would greatly appreciate feedback. Thanks.

Dunrar avatar Jul 13 '22 16:07 Dunrar

@OzzieIsaacs could you have a look at this and #2497? I need advice, especially when it comes to the GDrive integration and embedding when downloading book files. Thanks!

Dunrar avatar Jul 28 '22 13:07 Dunrar

Sorry for the very late reply. I prefer number 3 and I implemented it in the "new" metadata branch

OzzieIsaacs avatar Nov 11 '23 14:11 OzzieIsaacs

Alright, I see. I would have really appreciated it if you would have asked me to create PRs for that branch instead of just including the code.

Should I close this, #2497 and #2463?

Dunrar avatar Nov 11 '23 19:11 Dunrar

Please leave it open. I just created the new branch to resolve merge conflicts and work on the code, and if I have questions to have a base for talking with you

OzzieIsaacs avatar Nov 11 '23 19:11 OzzieIsaacs

Ah, okay, sorry for the rash response!

Dunrar avatar Nov 11 '23 20:11 Dunrar

No problem, I‘m happy that you are willing to work on the PR after one year

OzzieIsaacs avatar Nov 11 '23 20:11 OzzieIsaacs

I'm now 2 weeks on vacation. What I found so far:

  • we need something to regularly delete the temp folder, otherwise the tmp folder will grow bigger and bigger over time ( I can do this after my vacation)
  • if something goes wrong the error should not only be logged, there should be a user message

OzzieIsaacs avatar Nov 12 '23 11:11 OzzieIsaacs

I finalizes my tests and merged it to the development branch. I run all tests this night, I need to add some more tests for another feature and than we are done

OzzieIsaacs avatar Jan 13 '24 13:01 OzzieIsaacs