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 02-13-2011, 11:40 AM   #1
jameszh
Junior Member
jameszh began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: kindle 3
Copy/Move books between libraries using command line tools

Hi All,

I have multiple libraries, lots of the books are duplicate, what I want is to consolidate them into one library. Of course I could have merged them into one using gui, and then manually removing duplicate will be tedious.

My question is if it's possible to use command line tools to accomplish this, so the process can be done by a script.


Any hint is appreciated.

TIA,
James
jameszh is offline   Reply With Quote
Old 02-14-2011, 11:21 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jameszh View Post
I have multiple libraries, lots of the books are duplicate, what I want is to consolidate them into one library. Of course I could have merged them into one using gui, and then manually removing duplicate will be tedious.
The GUI has an automerge function under Preferences - Import/Export - Adding. It was originally designed for importing books, but was later added for Copy to Library. If that option is turned on during Copy to Library it will automerge duplicates it can identify into a single book in the destination library.

Read the tooltips for what it identifies as a "duplicate" book.

Note that the latest release has three alternative automerge options, but those options for the option do not apply during Copy to Library. They apply only during import (Adding).
Starson17 is offline   Reply With Quote
Advert
Old 02-14-2011, 08:44 PM   #3
jameszh
Junior Member
jameszh began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: kindle 3
Just tried automerge, it did pretty good job, thanks! -James
jameszh is offline   Reply With Quote
Old 02-15-2011, 09:02 AM   #4
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jameszh View Post
Just tried automerge, it did pretty good job, thanks! -James
I'm glad automerge for "Copy to Library" is being used and worked for you. Automerge was written to simplify my bulk adding of books to Calibre. I was actually very surprised when someone posted a "bug" report that "Automerge isn't working for Copy to Library!" It had never occurred to me that it should apply to CTL. (When I wrote automerge, CTL hadn't yet been written anyway).

After some thought, however, it sort of made sense that it would be useful for CTL to do the automerge you just found to be useful, and I added it to the CTL code. Nonetheless, I've always been sort of worried that some day I'll get another bug report saying "Automerge screwed up my Copy to Library!" from someone who thinks Copy should mean "copy" not merge.

Last edited by Starson17; 02-15-2011 at 09:04 AM.
Starson17 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
Problem installing Command line tools patc890 Calibre 7 12-12-2010 08:02 AM
Move Books between Libraries barium Calibre 5 10-03-2010 10:03 PM
Where are the command line tools? PaulChernoch Calibre 17 10-23-2009 12:08 PM
Adding books from the command line edembowski Calibre 1 08-29-2009 11:18 AM
command-line conversion tools in 0.6.0? WayneD Calibre 3 06-03-2009 01:30 PM


All times are GMT -4. The time now is 06:01 AM.


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