Thread: CLI show ebook
View Single Post
Old 11-30-2017, 01:54 PM   #4
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Don't Google it, use instead the manual and in addition the inline help from command line tool's.

calibre manual:
https://manual.calibre-ebook.com/gen...redb.html#list

Inline help for calibredb list via command line (as for all command line tool from calibre):
calibredb list --help

As fare I know there is no direct information for a book file including the path information. But this isn't a real problem. Create first a custom field from type "custom build from other columns":
Lookup name: pathfilename
Column heading: Path&FileNameAll
template: {:'formats_paths()'}
Sort/search: Text

Now you can use the commandline tool calibredb to fetch the informations you need. Example (output into file testpath.txt):

calibredb list --fields=author,title,*pathfilename >testpath.txt

Remark:
The template extract all book files for a book entry, this means if you have more then one format for a book you will get for each format a file and path information.

Hope this will help you a little for your problem.

Edit: There was a little typo for authors. The correct string is:
calibredb list --fields=authors,title,*pathfilename >testpath.txt

Last edited by Divingduck; 01-20-2018 at 09:16 AM.
Divingduck is offline   Reply With Quote