From 098dab889a3997543a94713364802172fece13c1 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Thu, 21 May 2020 19:37:54 +0200 Subject: [PATCH] Fixed title sorting routine --- cps/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/db.py b/cps/db.py index 499765d1..6d31e599 100755 --- a/cps/db.py +++ b/cps/db.py @@ -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