Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-20-2022, 06:59 PM   #1
drawson1
Connoisseur
drawson1 began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: Libra H20, Clara 2E
Logical and/or witth "calibredb list -s ..."

I'd like to build a logical search with list -s like this example:

calibredb list -s \( author:Asimov or author:Heinlein \) and rating:False

Note that I'm doing this in a bash shell script.

FYI, the same syntax works for "calibredb search ...", but fails with syntax errors for list -s.

Is this possible?

Alternatively, if there's a way to pass a list of ID's to the list command, I can do this with search and save the resulting ID list, then make a single call to 'calibredb list ...'
drawson1 is offline   Reply With Quote
Old 08-20-2022, 10:31 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: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibredb list -s '( author:Asimov or author:Heinlein ) and rating:False'

-s is an opton it can take only a single argument. calibredb search can take multiple arguments, so you need to quote for -s
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"calibredb list" throws error bob.f Library Management 5 12-30-2017 08:04 AM
command line "calibredb catalog" problems Divingduck Calibre 12 12-26-2014 05:01 PM
Error: "can only concatenate list (not "unicode") to list" bmuesse Library Management 2 01-11-2013 03:50 PM
Defining Metadata with "calibredb add" command line function. macr0t0r Calibre 3 03-01-2012 07:36 PM
How to remove "Fully read" books from "Last Open" list? pjeanetta PocketBook 4 12-08-2010 10:30 AM


All times are GMT -4. The time now is 04:27 PM.


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