|
|
#16 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
Quote:
As for the ID, I assume that the book has some known attribute that you can use to match the book. If that attribute is title, then the following command provides trivially parsable output Code:
calibredb list -f uuid -s "title:\"=the first lensman\""
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre Last edited by chaley; 11-21-2012 at 04:54 AM. Reason: add missing calibredb command |
|
|
|
|
|
|
#17 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,485
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It really isn't that hard.
Code:
title=`ebook-meta file.mobi | grep '^Title' | head -n1 | cut -d: -f 2` id=`calibredb list --separator : --fields title | grep "$title" | cut -d: -f1` calibredb add_format $id file.mobi
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
Enthusiast
|
|
|
|
#18 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 628
Karma: 433530
Join Date: Mar 2012
Location: NSW Australia
Device: None - see signature
|
@Matsendrasana - Assuming the number of replacements you want to do at any given time is small, then why not drag/drop the replacement files from your editing location into the the Book Details panel of the relevant book.
I do it frequently for RTF, PDF, EPUB, MOBI & PRC formats - the new files replace the old files in the relevant "library/author/title (id)" directory. You can also drag/drop replacements into the Edit Metadata Formats box. I found it by suck it and see, it doesn't seem to be documented - Managing book formats has - "You can add a new format, delete an existing format and also ask calibre to set the metadata ..." I hope its not a bug - I'd be lost without it BR
__________________
Windows 7Pro 64bit Desktop, Mint UL portable with Firefox & EpubReader |
|
|
|
|
|
#19 | |
|
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2012
Device: none
|
Quote:
Since I do not update the library each time a source has been edited, but maybe just at the end of the day or the week, a script is safer. @kovidgoyal: Thank you! The --separator : --fields title options are the solution! I wasn't aware of them. Although I use the newest Calibre: Code:
$ calibredb --version calibredb.exe (calibre 0.9.6)
|
|
|
|
|
|
|
#20 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
Quote:
Code:
calibredb list -h Spoiler:
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Suggestion: change default library folder location so it's backed up by Win7 Backup | robcohen | Devices | 2 | 02-24-2012 01:50 AM |
| Can I change library folder names? | lizzielou | Library Management | 2 | 01-23-2012 11:49 AM |
| Moving library folder outside calibre - than change within. | myle00 | Calibre | 6 | 08-16-2011 07:08 AM |
| Want to change the folder structure of the Calibre library? | Manichean | Library Management | 0 | 01-30-2011 10:51 AM |
| Change the folder where News are sent | Walkmancho | Calibre | 0 | 07-07-2010 01:22 AM |