Calibredb List command output problem
I just finally got caught up to the new python version updating to 9.0 today. I am now having trouble with the Calibredb list command performing differently than before. I you do a list on the command line the output looks just fine with a header line and then the single book qualified in the search argument. But if the output is redirected to a file or even if you view the output in a log file the book comes first and then the header line. This is screwing up a batch file of mine that directs the list output to a file and then parses the file with the batch command "for" to retrieve the id number of the book searched for. I have tried the --ascending option but no help there. This worked correctly in the pre Python 3 versions.
calibredb list --search="title:Allen's eBook Shelf" --limit=1 >list.tmp
type list.tmp
365 Allen's eBook Shelf Allen Williams
id title authors
|