From 6ab03cc3d3afcf32663fd7b7c7202ccdcb0e9e43 Mon Sep 17 00:00:00 2001 From: lordwelch Date: Tue, 2 Jun 2020 20:09:32 -0700 Subject: [PATCH] Update natsort usage --- comicapi/comicarchive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comicapi/comicarchive.py b/comicapi/comicarchive.py index d33941d..d1648f3 100644 --- a/comicapi/comicarchive.py +++ b/comicapi/comicarchive.py @@ -28,7 +28,7 @@ import io #import locale #import shutil -from natsort import natsorted +import natsort # from PyPDF2 import PdfFileReader try: from unrar import rarfile @@ -915,7 +915,7 @@ class ComicArchive: # k = os.path.join(os.path.split(k)[0], "z" + basename) return k.lower() - files = natsorted(files, key=keyfunc) + files = natsort.natsorted(files, alg=natsort.ns.IC | natsort.ns.I) # make a sub-list of image files self.page_list = []