1
0
mirror of https://github.com/ciromattia/kcc synced 2026-07-03 03:25:27 +00:00

Tweaked ComicRack metadata parser

This commit is contained in:
Paweł Jastrzębski
2013-11-04 20:08:54 +01:00
parent 34d6af93a6
commit c0f4bc021a
2 changed files with 17 additions and 10 deletions
+2
View File
@@ -91,6 +91,8 @@ class CBxArchive:
elif self.compressor == '7z':
self.extractCB7(targetdir)
adir = os.listdir(targetdir)
if 'ComicInfo.xml' in adir:
adir.remove('ComicInfo.xml')
if len(adir) == 1 and os.path.isdir(os.path.join(targetdir, adir[0])):
import shutil
for f in os.listdir(os.path.join(targetdir, adir[0])):