11-30-2017, 06:53 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2017
Device: Kindle
|
CLI show ebook
Hello everybody out there using calibre,
With `calibredb list --search ...` it is possible to search for a ebook on the command line. Is there also a command to open the ebook with a suitable application (PDF or EPUB reader) or at least get the path of the attached file? Best, Nicolas |
11-30-2017, 11:09 AM | #2 |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
the ID number returned by the search is the key to chaining the commands
look at the --export switch |
Advert | |
|
11-30-2017, 12:06 PM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2017
Device: Kindle
|
Thanks a lot for the quick answer.
I searched the web and only found out that Code:
--export Code:
calibredb What I would like to do however, is opening a book (for example by its ID) with a suitable application). |
11-30-2017, 01:54 PM | #4 |
Wizard
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. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CLI ebook manager ? | dnastase | General Discussions | 6 | 10-01-2017 12:01 PM |
Multiple input files for ebook-convert or other Calibre CLI tools? | tomcam | Calibre | 1 | 04-08-2017 04:49 PM |
Changing "Personal Doc tag" with ebook-convert CLI tool | choogi | Conversion | 3 | 11-06-2015 02:38 PM |
Epub capable ebook reader for win7 with commandline options (CLI) | Togg | Windows Devices | 1 | 04-24-2013 04:07 PM |