Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 07-07-2021, 04:19 AM   #1
n3ssi3
Junior Member
n3ssi3 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2021
Device: linuxserver/calibre
Change author with calibredb

Hey

I am trying to add a space in the authors name:
Code:
root@1dce1a6e8ae1:/# calibredb --with-library=/books/ show_metadata 5032
Title               : Connections in Death
Title sort          : Connections in Death
Author(s)           : J.D. Robb [Robb, J.D.]
Publisher           : St. Martin's Press
Series              : In Death #48
Languages           : eng
Timestamp           : 2021-07-01T07:08:39+00:00
Published           : 2019-02-05T00:00:00+00:00
Identifiers         : isbn:9781250201577, goodreads:40122012

root@1dce1a6e8ae1:/# calibredb --with-library=/books/ set_metadata 5032 --field authors 'J. D. Robb'
The OPF file /J. D. Robb does not exist
what does "The OPF file /J. D. Robb does not exist" mean?
I already have many books by this author spelled `J. D. Robb` and only this one book is under another folder because the space is missing...

What is the proper command to change the authers name with calibredb?

Thank you
n3ssi3 is offline   Reply With Quote
Old 07-07-2021, 04:22 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,714
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Would it not be so much easier to use the GUI?
JSWolf is offline   Reply With Quote
Old 07-07-2021, 04:51 AM   #3
n3ssi3
Junior Member
n3ssi3 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2021
Device: linuxserver/calibre
Quote:
Originally Posted by JSWolf View Post
Would it not be so much easier to use the GUI?
Yes it would. But changes by the GUI will be ignored by the api.
I have calibre and readarr hosted on my media server.
Running in docker
- https://fleet.linuxserver.io/image?n...server/calibre
- https://hub.docker.com/r/hotio/reada...g=last_updated

I used to mount the books folder with samba and have the GUI running on my machine.
Having those changes applied to the API would be my ideal setup

Is there a way i can do that? f.e. symlink the metadata.db ?
n3ssi3 is offline   Reply With Quote
Old 07-07-2021, 05:22 AM   #4
georgemk
Addict
georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.
 
Posts: 243
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
From the manual
Quote:
calibredb set_metadata [options] id [/path/to/metadata.opf]
So you need to put the options --field author "name" before the ID not afterwards.
georgemk is offline   Reply With Quote
Old 07-07-2021, 05:26 AM   #5
n3ssi3
Junior Member
n3ssi3 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2021
Device: linuxserver/calibre
Quote:
Originally Posted by georgemk View Post
From the manual

So you need to put the options --field author "name" before the ID not afterwards.
Code:
root@1dce1a6e8ae1:/# calibredb --with-library=/books/ set_metadata --field authors "J. D. Robb" 5032
You must specify a record id as the first argument
I also tried to add the path to the metadata file

Code:
root@1dce1a6e8ae1:/# calibredb --with-library=/books/ set_metadata 5032 --field authors "J. D. Robb" /books/J.D.\ Robb/Connections\ in\ Death\ \(5032\)/metadata.opf
The OPF file /J. D. Robb does not exist
n3ssi3 is offline   Reply With Quote
Old 07-07-2021, 09:01 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,338
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibredb set_metadata -f "authors:Some Author" 1234

where 1234 is the book id.
kovidgoyal is online now   Reply With Quote
Old 07-07-2021, 02:33 PM   #7
n3ssi3
Junior Member
n3ssi3 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2021
Device: linuxserver/calibre
Awesome! Thank you, works
n3ssi3 is offline   Reply With Quote
Reply

Tags
calibredb, setmetadata


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Will Calibre author's name change get sent to CC? crane3 Calibre Companion 1 12-17-2017 04:38 AM
Change Author Sort to LN, FN jgt1942 Library Management 3 01-22-2017 04:58 AM
Change Catalogue author? Phssthpok Library Management 0 04-22-2015 08:27 AM
How to Change the Author around Spur52 Library Management 20 09-22-2011 08:21 AM
Change Author edbro Sony Reader 1 08-02-2007 09:19 PM


All times are GMT -4. The time now is 10:12 PM.


MobileRead.com is a privately owned, operated and funded community.