Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 08-12-2018, 08:23 AM   #1
wladdy
Enthusiast
wladdy began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Oct 2010
Device: iPad / Kindle DX
Deducing "Author sort" and "Title sort" through CLI

Hello,

I add books to Calibre through a shell script that properly sets "Author" and "Title".
I am aware that I could also include "Author sort" and "Title sort", but that would make me write into the script rules to generate the latter from the former. I would rather avoid that. For consistency, I prefer to use always Calibre's rules.
Therefore, after the script finishes running, I bulk edit the metadata of the books I've added. No bid deal, but I would rather this step be done automatically through the command line interface.

My question is:

Is there a way to use a CLI command such as calibredb to deduce "Author sort" and "Title sort" from "Author" and "Title"?

Many thanks in advance! W.
wladdy is offline   Reply With Quote
Old 08-12-2018, 12:34 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,615
Karma: 10209576
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibredb can output all metadata via the show_metadata sub-command.

calibredb show_metadata --as-opf book_id
kovidgoyal is offline   Reply With Quote
Reply

Tags
author sort, calibredb, cli, title sort

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort on data+time entered into the column "title"? nikoski Calibre Companion 4 07-29-2017 04:51 AM
Use "short" instead of "full" title for title sort & renaming? wolpi Library Management 2 08-04-2016 06:25 PM
PW doesn't sort by "author-sort" thesn00ze Devices 4 05-23-2014 07:37 PM
A warning for Linux users: slow "Add Books", "Unknown" title and Author rolgiati Library Management 8 07-24-2013 05:36 PM
How do I turn off the red highlight around "author sort" lunixer Calibre 5 09-19-2010 12:25 PM


All times are GMT -4. The time now is 06:52 AM.


MobileRead.com is a privately owned, operated and funded community.