View Single Post
Old 02-23-2022, 05:30 AM   #3
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 124
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
Thanks for your answer.
Unfortunately, no, it doesn't work. There's no --search option in the export command.
It would be great to have some kind of filters when exporting.

But, you gave me an idea : according to the doc :
"calibredb search - The output format is useful to feed into other commands that accept a list of ids as input.""

So
Code:
calibredb search tags:"my tag"
give me all the ids I want

then
Code:
calibredb export id1,id2,etc --to-dir "I:\test"
and I get what I want.

Now the problem is, how do I pass this (big!) list of ids to the export command, in a batch file...
I'll have to think about it

Thanks !
Bertrand is offline   Reply With Quote