Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-27-2009, 09:23 PM   #1
Nedan
Junior Member
Nedan began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2009
Device: PRS-505
Command line calibredb set_metadata problem

Hi,

when you add a book to a series you can tell calibre which book number it is. Imagine i have 200 files and i add them to the database and enter a series. Then each book will have in the book field the number 1. i want change this but not with manual way in the gui. It is tiresome to select the book, press E, click on the book field and enter the number 200 times.

So, the idea i had is the following one: Writing a bash script which will do this automatically. That wshould be the final result BUT:
I tried to write the metadata with calibredb set_metadata ID /path/to/opf-file.
For that i had changed the following line in the opf-file from:
Code:
<meta name="calibre:series_index" content="1">
to
Code:
<meta name="calibre:series_index" content="25">
and wrote the data into database with calibredb set_metadata ID /path/to/opf-file

It worked well, except that the command would not write the 25 into the database. Instead it turned out that the 1 was still there.
What have i done wrong? Is there a way to change the book number that way?
Nedan is offline   Reply With Quote
Old 02-27-2009, 09:44 PM   #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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
most likely a bug, open a ticket and attach the opf file you used
kovidgoyal is offline   Reply With Quote
 
Advertisement
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Defining Metadata with "calibredb add" command line function. macr0t0r Calibre 3 03-01-2012 08:36 PM
Problem updating metadata (using mobi2mobi command line and gui) whitearrow Kindle Formats 3 12-05-2009 08:07 PM
Why use the command line? slantybard Calibre 6 07-22-2009 01:17 PM
Errors on Command Line drnkusv Calibre 11 11-07-2008 03:59 PM


All times are GMT -4. The time now is 05:13 PM.


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