1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-11 00:36:33 +00:00

fix comicinfo detection in corner case (9.3.4 regression) (#1185)

This commit is contained in:
Alex Xu
2025-12-03 19:13:19 -08:00
committed by GitHub
parent 8ac58e361f
commit 9fcacd7ae6

View File

@@ -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: