mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
558e0a7b5b
commit
7561d4f4a0
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user