|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2020
Device: None
|
Are there good examples of command line importing / metadata / library management
I'd like to create a script to automate importing and upgrading metadata, it would great to see any examples of this.
Thank you. |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,181
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Only if someone figures out a way to pick the discovered metadata options as well as the mark 1 eyeball does. The current Download metadata and covers option from Edit metadata is a pretty decent example of what is wrong with automatic download and import of metadata. I have yet to find a metadata source that is even close to trustworthy. By trustworthy, I mean automatically update 25 books and not have to modify the metadata and covers for more than 5.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2020
Device: None
|
Quote:
Quote:
My current plan would involve, all automatically:
With the tools available I think this will do an alright job. Note: I talked about creating a list of items, but I think it would be better to process each item individually, it is very much a work in process. |
||
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There are command line tools in calibre for downloading metadata, updating metadata of items in calibre libraries, etc. Use them, there is a whole section on the command line tools in the user manual.
|
![]() |
![]() |
![]() |
#5 | |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2020
Device: None
|
Quote:
I've got one issue though, The fetch-ebook-metadata CLI doesn't see my user installed Plugins? Where are they installed? I can find three fetch-ebook-metadata CLI's in the container. One each in:
The first two only search with Amazon / Google. And the last has an error: Code:
/opt/calibre/bin/fetch-ebook-metadata: error while loading shared libraries: libcalibre-launcher.so: cannot open shared object file: No such file or directory |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
plugins are stored in the calibre config directory whose location can be controlled via an env var, see the manual https://manual.calibre-ebook.com/cus...ment-variables and you can install them from the command line with calibre-customize
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2020
Device: None
|
Ok so to use the fetch-ebook-metadata with a third party plugin via CLI I should install it again via CLI with calibre-customize. Thank you I have found the plugin.zip's in .config/calibre/plugins in my calibre_config_directory.
What is the path to where Calibre operates the user installed plugins from though? |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
all user installed plugins in the calibre config directory are automatically used.
|
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2020
Device: None
|
I see all the plugin's in .config/calibre/plugs are all .zip archives. I incorrectly thought for Calibre to use them, first Calibre would have to unpack them elsewhere. Now I see that it is using them as they are from the .zip archives. Very interesting. Thank you for the help
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Importing books via command line *in the background*? | mrowz | Calibre | 12 | 05-26-2017 11:30 AM |
bulk metadata download through command line | woodapple | Calibre | 13 | 09-02-2013 04:50 PM |
Adding custom fields when importing books via command line | chemi | Library Management | 7 | 02-25-2013 10:16 PM |
Command Line Search and Replace Metadata | metalhammer | Calibre | 1 | 05-02-2012 05:13 AM |
Checking and Importing from the Command Line | markbond1007 | Calibre | 3 | 08-06-2009 12:46 PM |