|
|
#1 |
|
Enthusiast
![]() 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. |
|
|
|
|
|
#2 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
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. |
|
|
|
| Advert | |
|
|
![]() |
| Tags |
| calibredb, cli, sort, unix, update |
|
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 |