mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-11 05:33:57 +00:00
Fixed title sorting routine
This commit is contained in:
parent
cc856c7cd1
commit
098dab889a
@ -318,7 +318,7 @@ def update_title_sort(config, conn=None):
|
||||
match = title_pat.search(title)
|
||||
if match:
|
||||
prep = match.group(1)
|
||||
title = title.replace(prep, '') + ', ' + prep
|
||||
title = title[len(prep):] + ', ' + prep
|
||||
return title.strip()
|
||||
|
||||
conn = conn or session.connection().connection.connection
|
||||
|
Loading…
Reference in New Issue
Block a user