07-02-2018, 12:35 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2018
Device: Android
|
Editing custom metadata with CLI
I've just started fooling around with the command line interface and am getting the hang of it. Specifically what I want to do is to use the interface to edit the Library of Congress catalog numbers for each book. I've set up the Library of Congress custom data field and can access it with the GUI.
Is this doable -- does the ebook-meta command (or any other command) allow for editing of the LOC custom field? If it's not doable, anyone have suggestions for a workaroun? |
07-02-2018, 12:38 AM | #2 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibredb set_metadata --help
|
07-02-2018, 01:13 AM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2018
Device: Android
|
Thanks for the quick response. I'm getting close.
If I get a list of fields through calibredb set_metadata -l, on my list is format:Library of Congress and Field name: #LOC. If I then try to edit the metadata of book id 45070 to change the LOC number to LC385, it looks like the command is "calibredb set_metadata --field #loc:LC385 45070". This gets me an error that the field option requires an argument. |
07-02-2018, 01:37 AM | #4 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to quote command line arguments appropriately for whatever shell you are using
Code:
--field "#LOC:whatever" |
07-02-2018, 01:48 AM | #5 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2018
Device: Android
|
This worked. Thanks.
|
Tags |
cli, custom, metadata |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fetching metadata with CLI | kassart | Calibre | 9 | 08-03-2016 10:36 PM |
Saving metadata and covers with the cli interface not working properly | Kode | Calibre | 9 | 11-09-2014 06:29 PM |
Editing custom columns | JCSullivan | Library Management | 4 | 04-12-2012 01:14 PM |
Adding online metadata using ISBN from CLI | EditorJack | Calibre | 17 | 01-20-2009 01:47 AM |