1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-24 18:47:23 +00:00

Fixed title sorting routine

This commit is contained in:
Ozzieisaacs 2020-05-21 19:37:54 +02:00
parent cc856c7cd1
commit 098dab889a

View File

@ -318,7 +318,7 @@ def update_title_sort(config, conn=None):
match = title_pat.search(title) match = title_pat.search(title)
if match: if match:
prep = match.group(1) prep = match.group(1)
title = title.replace(prep, '') + ', ' + prep title = title[len(prep):] + ', ' + prep
return title.strip() return title.strip()
conn = conn or session.connection().connection.connection conn = conn or session.connection().connection.connection