chenyanming / calibredb.el

Emacs calibre client - An Ebook Management Solution in Emacs.
GNU General Public License v3.0
323 stars 17 forks source link

Display of multiple authors #78

Open wenzlawski opened 7 months ago

wenzlawski commented 7 months ago

In Calibre multiple authors are delimeted with an ampersand (&), such that two authors in author sort form look like "Marx, Karl & Engels, Friedrich".

This causes problems when sorting by author in calibredb.el, as it separates the authors by comma. This is done in calibredb-all-author-sort and calibredb-format-item.

Simple solution is to replace the comma in (split-string x ",") with an ampersand.

Will this be a solution or am I missing something?