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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2012, 12:25 PM   #1
boell
Junior Member
boell began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2012
Device: Sony PRS 650
command line batch to change title etc.

Is it possible to write a batch file for the command line, that changes the author, title, series, or series n° of multiple books?

Together with friends I collect pulp fiction, and we maintain the books and stories in a calibre library. We do a lot of metadata-editing. Until now each of us updates his library manually. We are looking for a way to automate the metadata-update and got the idea, that this is perhaps possible with the calibre command line. But we don't know, how to write the proper commands and to put them in a batch file.

Your help is most appreciated.
boell is offline   Reply With Quote
Old 10-11-2012, 01:30 PM   #2
Terisa de morgan
Wizard
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 2,396
Karma: 2236104
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Aura, Kobo Mini, Kobo Aura HD, iPhone, iPad, Galaxy Tab3 8
Yes, it is possible, you should use the command ebook-meta (calibre manual describes it).
Terisa de morgan is offline   Reply With Quote
Old 10-12-2012, 05:31 AM   #3
boell
Junior Member
boell began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2012
Device: Sony PRS 650
Thanks for your response. I'd already found the 'ebook-meta' command in the manual. But I don't know how to use it. Can you or somebody else please give me an example how such a command actual would look like. (F.e. i want to change 'Edgar Rice Burroughs - The Man-Eater' from 'Jungle Tales 02' to 'Jungle Adventures 01')
boell is offline   Reply With Quote
Old 10-14-2012, 09:56 AM   #4
boell
Junior Member
boell began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2012
Device: Sony PRS 650
No one, who can write this command line?
boell is offline   Reply With Quote
Old 10-14-2012, 10:54 AM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,908
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by boell View Post
Thanks for your response. I'd already found the 'ebook-meta' command in the manual. But I don't know how to use it. Can you or somebody else please give me an example how such a command actual would look like. (F.e. i want to change 'Edgar Rice Burroughs - The Man-Eater' from 'Jungle Tales 02' to 'Jungle Adventures 01')
If Jungle Tales 02 is the series and index for this book than the following worked for me.

Code:
C:\Users\Walt>ebook-meta "C:\Dropbox\Calibre Portable\Calibre Library\Edgar Rice Burroughs\The Man-Eater (1898)\The Man-Eater - Edgar Rice Burroughs.epub" -s "Jungle Adventures" -i 1
Substitute your path and actual title as required.

Update: This updates the metadata in the book not the library.

Last edited by DoctorOhh; 10-14-2012 at 11:16 AM.
DoctorOhh is offline   Reply With Quote
Old 10-14-2012, 06:08 PM   #6
boell
Junior Member
boell began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2012
Device: Sony PRS 650
Thanks DoctorOhh, that helped a lot. If I see it right, the command needs the database id (in your example: 1898), so unfortunately it's not possible to write one edit batch and contribute it to everybody in our collectors group, because the id's are different for each members library, as we checked. But thanks again.

Last edited by boell; 10-14-2012 at 06:11 PM.
boell is offline   Reply With Quote
Old 10-14-2012, 07:42 PM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,908
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
It does not require the database id, this info is just part of the path. You could put your book in C:\ and it would work fine.
DoctorOhh is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
escaping spaces in command line --title nimblebooks Conversion 4 11-23-2011 02:31 PM
ebook-convert: change settings from command line miwie Calibre 1 11-30-2010 03:05 PM
Change To Internal Name via Command Line nkormanik Calibre 6 10-19-2010 07:01 PM
Command Line Batch Adding of Epubs nkormanik Calibre 6 10-19-2010 09:04 AM
adding books via command line in msdos batch FlaKate Calibre 1 12-25-2009 02:12 AM


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


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