-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
feature request: fetch-ebook-metadata #9
Comments
As I thought this was a fun little project, I have coded a partial solution (it is working, but I would still like to choose between metadata from different sources). First here is the code:
So the I was wondering if you have some suggestion how some functionality for previewing the metadata from different sources and subsequent selection could be nicely implemented |
Implement auto fetch metadata (issue #9)
@dalanicolai Appreciate that your contribution to |
Thanks for testing! I developed on my Spacemacs configuration, where the new functionality is working perfectly fine (of course). However, now I test it on a plain (except that it has Ivy installed) Emacs installation and it returns a very strange error. Namely, while fetching metadata, at the first step where I should choose between the original and fetched cover, Emacs returns an error saying that the 'ivy-read' command receives an invalid keyword argument. However, the ivy-read command looks perfectly fine and it works perfectly fine on my Spacemacs configuration. I really don't know why it behaves like this. Do you have an idea? Also of course I am happy to answer any question. One more thing. Maybe I could mention my toc-mode package somewhere in the README as RELATED PACKAGE. Some people might be interested and it is otherwise not easy to find... |
Fixed the key-argument error mentioned in [https://github.com/chenyanming/calibredb.el/issues/9#issuecomment-667661650](this comment). Also added clear image cache to refresh images and added some whitespace between the different covers in the cover selection buffer. Finally added a conditional to test if fetched metadata contains 'published' field.
As I would prefer to set the author and author_sort columns correctly, I asked Kovid (main Calibre developer), if it is possible to use the author_sort algorithm from the command line. So the algorithm can be use via: |
I think this feature has been done. Shall we close the issue? |
Agreed! |
First of all thanks for this very beautiful package that almost saves me from opening Calibre-gui. However, usually after adding a book I fetch metadata (incl. cover) automatically with Calibre. Now calibre comes with a command-line utility for fetching the metadata. Would be great if we could use this from Calibre to set the metadata (and download the cover).
This command line utility returns only the first result from all possible sources (Google, Amazon.com etc.), while Calibre-gui let's you choose from multiple results (would be great to have that option here too).
Here is an example of how to use the command that also donwloads the cover in the current working directory:
fetch-ebook-metadata -p "Amazon.com" --authors "dominik" --title "org" -c cover.jpg
The text was updated successfully, but these errors were encountered: