View Single Post
Old 07-27-2013, 10:09 PM   #23
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,893
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
Perhaps, but I don't want to add functionality. Fixing something I think it broken is another thing.
See last 2 paras

Quote:
Originally Posted by chaley View Post
This works on my library. You can make the substitutions.
Code:
calibredb  remove 1-51 --library-path="D:\CBH_Data\calibre.git\Library.test_small"
I found the --library-path item in the PDF this morning, missed it in the online version both yesterday and last week. The CLI section of the manual would benefit greatly if it had some complete examples of each command.

Quote:
Originally Posted by chaley View Post
Depending on the upper limit, you might be talking about many hours.
I'll be asleep. Also it wouldn't be too onerous for me to set the upper limit at four weekly intervals, to something more sensible than the suggested 100000, eg 10% above max book ID.

However I anticipated my original question How to Create New Library from Existing Library at the Command Line would have had a straightforward answer - you do it like this or there is no way to do that.

I need to revisit why I asked the question and see if I can achieve what I want via a different route. Whilst I cringe when I think of Autoit (it upsets my puritanical mores) it's looking to be the best option. Isolating the Copy Structure from Library code into a CLI utility may have a limited lifetime given that Kovid is working on a new database schema.

Thanks for your suggestions, if nothing else our discussion did allow you to detect a defect which is a plus.

BR

Last edited by BetterRed; 07-27-2013 at 10:30 PM.
BetterRed is offline   Reply With Quote