This commit is contained in:
Kovid Goyal 2024-09-26 20:18:02 +05:30
parent 558e0a7b5b
commit 7561d4f4a0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -37,7 +37,7 @@ def extract_comic(path_to_comic_file):
for x in walk(tdir):
bn = os.path.basename(x)
nbn = clean_ascii_chars(bn.replace('#', '_'))
if nbn != bn:
if nbn and nbn != bn:
os.rename(x, os.path.join(os.path.dirname(x), nbn))
return tdir