Ticket #4710 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

new author_sort[0] for sending to device/saving causes error

Reported by: markbond Owned by: kovidgoyal
Priority: major Milestone:
Component: Default Version: trunk
Keywords: Cc:

Description

Mac OSX calibre version 0.6.36, when adding the {author_sort[0]} to the save/send to device path I get the following error:

ERROR: Invalid template: <p>The template {author_sort[0]}/{author_sort}/{series} {series_index:0>3s} {title} - {authors} is invalid:<br>string index out of range

Attachments

grab.jpg Download (169.4 KB) - added by markbond 7 months ago.
Screen Shot of Error Message

Change History

comment:1 Changed 7 months ago by kovidgoyal

Make sure you dont have any empty author sort strings in you library, but you still should not be getting this error (calibre ignores template components that use invalid indexes. WHat is the full error message (click show details).

comment:2 Changed 7 months ago by markbond

There is no show details button, this error pops up when I try to OKay the preferences and all it has is a copy button (which copies the error to clipboard) and an ok button.

Just opened up the SQL DB as well and run "select * from books where author_sort=" this returns an empty result (ie no books with author_sort set to blank).

Changed 7 months ago by markbond

Screen Shot of Error Message

comment:3 Changed 7 months ago by kovidgoyal

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in branch trunk. The fix will be in the next release.

Note: See TracTickets for help on using tickets.