View Single Post
Old 11-01-2017, 12:31 AM   #1
Timboli
Sharpest Tool On Shelf
Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.
 
Timboli's Avatar
 
Posts: 661
Karma: 2587836
Join Date: Feb 2009
Location: Downunda
Device: Kindles, Kobo & Samsung Tablet
Question Adding individual titles (multiple PCs)

(my apologies if this has been covered before, but I could not find it)

BACKGROUND
I have written a script (now an executable) that allows for easy import on one PC of individual titles copied from another PC. It does that via association of an OPF (.opf) metadata file, with calibre on that PC.

I have found that to set things up right, you must first import the OPF file, then add any ebook formats to that entry. I used to do it all manually, so a lot of browsing if a few formats for a title. My script, simplifies all that, by allowing full importation of all, by either double-clicking the OPF file or using a right-click "Add to calibre" entry. If calibre is not running, you get queried about adding.

My script works pretty well, but even though all the formats have been added for the title, none are displayed for that visible title, until either I restart calibre, or I manually perform a Quick Switch to Blank Database and then back to Calibre Database, then followed by use of the right arrow key, to jump to that title (the database having been sorted during the process, so the title is no longer at top).

QUESTION
Is there a way to do the final quick switch element of the process, using the command-line?

Or .... Just getting the added formats to show for the title, after adding via command-line.

SUGGESTION
It would be nice, if calibre gave quick easy access to importing ALL via the OPF file (via a prompt), and dispense with my script altogether.

Last edited by Timboli; 11-01-2017 at 12:36 AM.
Timboli is offline   Reply With Quote