Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-07-2022, 02:42 AM   #1
snowdog
Enthusiast
snowdog began at the beginning.
 
snowdog's Avatar
 
Posts: 27
Karma: 10
Join Date: Mar 2011
Device: Kindle PW2 2013
specify series using calibredb

Hello,
I would like some help on how to specify the calibredb command to rewrite the series field in the metadata.db file. I have tried several variations but none of them lead to any result.

In principle, this would be the syntax:
add
calibredb add [options] file1 file2 file3 ...
--series, -s
set the series of the added book(s).

One of these variations was this:
"C:\Program Files\Calibre2\calibredb" add --series --with-library "E:\A" "series" "1" "series_name"

Last edited by snowdog; 10-07-2022 at 02:45 AM.
snowdog is offline   Reply With Quote
Old 10-07-2022, 02:59 AM   #2
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
"C:\Program Files\Calibre2\calibredb" add --with-library "E:\A" --series "series" --series-index 23 file.epub
kovidgoyal is offline   Reply With Quote
Advert
Old 10-07-2022, 03:01 AM   #3
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And if you want to change the series of an existing book already in the library

calibredb set_metadata --with-library "whatever" --field "series:series name [number]"
kovidgoyal is offline   Reply With Quote
Old 10-07-2022, 03:34 AM   #4
snowdog
Enthusiast
snowdog began at the beginning.
 
snowdog's Avatar
 
Posts: 27
Karma: 10
Join Date: Mar 2011
Device: Kindle PW2 2013
Quote:
Originally Posted by kovidgoyal View Post
And if you want to change the series of an existing book already in the library

calibredb set_metadata --with-library "whatever" --field "series:series name [number]"
Hi kovidgoyal,
Thank you for your quick reply. Yes, I would like to change the series name of a book that already exists in the library. If it is possible to specify the series index within same command, what is the way to do it?

metadata.db file location: E:\y\A
Details of the book:
book id: 2483
series name: "A dzsungel veszélyes hely"
series index:1

This is the order I issued:
"C:\Program Files\Calibre2\calibredb" set_metadata --with-library "E:\y\A" --field "series:A dzsungel veszélyes hely [1]"

I got this error message:
You must specify a record id as the first argument

p.s. It worked, it was the right order:
"C:\Program Files\Calibre2\calibredb" set_metadata --with-library "E:\y\directory\A" --field "series:A dzsungel veszélyes hely [1]" 2483

Last edited by snowdog; 10-07-2022 at 03:46 AM.
snowdog is offline   Reply With Quote
Old 10-07-2022, 03:44 AM   #5
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
"C:\Program Files\Calibre2\calibredb" set_metadata --with-library "E:\y\A" --field "series:A dzsungel veszélyes hely [3]" 2483
kovidgoyal is offline   Reply With Quote
Advert
Old 10-07-2022, 04:11 AM   #6
snowdog
Enthusiast
snowdog began at the beginning.
 
snowdog's Avatar
 
Posts: 27
Karma: 10
Join Date: Mar 2011
Device: Kindle PW2 2013
Quote:
Originally Posted by kovidgoyal View Post
"C:\Program Files\Calibre2\calibredb" set_metadata --with-library "E:\y\A" --field "series:A dzsungel veszélyes hely [3]" 2483
Thank you very much for your quick and efficient help.
snowdog is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Series to Title in CalibreDB? phossler Calibre 4 01-27-2015 09:19 AM
commandline calibredb Divingduck Calibre 2 07-31-2014 05:18 AM
calibredb format for "series" custom columns ZioNemo Library Management 7 02-06-2014 11:57 PM
calibredb list iomari Calibre 9 10-12-2011 11:30 AM
calibredb iomari Calibre 6 10-10-2011 08:35 AM


All times are GMT -4. The time now is 08:41 AM.


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