Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2015, 05:58 PM   #1
wladdy
Enthusiast
wladdy began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Oct 2010
Device: iPad / Kindle DX
Update 'title sort' and 'author sort' through CLI

I wrote a script in Unix to add empty books to Calibre and then populate their metadata based on what's listed in a separate text file. Now, while the books that I create using 'calibredb set_metadata' have proper 'title' and the 'authors' fields, their 'title sort' and 'author sort' are set to 'Unknown'.

My question:
is there a CLI way to automatically update 'title sort' and 'author sort' based on the existing 'title' and 'authors'?

Thanks in advance! W.
wladdy is offline   Reply With Quote
Old 07-16-2015, 06:12 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
No, but you can set the _sort fields with the same command, just regex the words around (the leading A/An/The for title, the last word for author).
Bash does have semi-decent support for regular expressions.
eschwartz is offline   Reply With Quote
Advert
Reply

Tags
calibredb, cli, sort, unix, update


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Author/Title sort WS64 Development 2 11-05-2014 07:56 AM
Title and Author Sort jgt1942 Library Management 5 05-26-2014 04:59 AM
Is there a quick way to update title-sort? cager Library Management 5 04-09-2014 07:06 AM
Sort by author then title richardwarriner Library Management 3 11-16-2011 02:00 PM
Author then title sort Gary Young Calibre 4 08-30-2010 11:03 PM


All times are GMT -4. The time now is 01:43 PM.


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