From 9fcacd7ae613781618a2dfcaf67733f67733f1fa Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Wed, 3 Dec 2025 19:13:19 -0800 Subject: [PATCH] fix comicinfo detection in corner case (9.3.4 regression) (#1185) --- kindlecomicconverter/comic2ebook.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 0fdc4af..8cb784f 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -905,7 +905,9 @@ def getWorkFolder(afile): os.path.join(fullPath, tdir[0], 'ComicInfo.xml') ) if len(tdir) == 1 and os.path.isdir(os.path.join(fullPath, tdir[0])): - path = os.path.join(fullPath, tdir[0]) + for file in os.listdir(os.path.join(fullPath, tdir[0])): + move(os.path.join(fullPath, tdir[0], file), fullPath) + os.rmdir(os.path.join(fullPath, tdir[0])) return workdir except OSError as e: