mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:14:07 +02:00
...
This commit is contained in:
parent
3b8fc2066c
commit
34d213b5b0
1 changed files with 1 additions and 1 deletions
|
|
@ -482,7 +482,7 @@ def add_files(self):
|
|||
for path in sorted(files, key=numeric_sort_key):
|
||||
name = files[path]
|
||||
i = 0
|
||||
while c.exists(name) or c.manifest_has_name(name):
|
||||
while c.exists(name) or c.manifest_has_name(name) or c.has_name_case_insensitive(name):
|
||||
i += 1
|
||||
name, ext = name.rpartition('.')[0::2]
|
||||
name = '%s_%d.%s' % (name, i, ext)
|
||||
|
|
|
|||
Loading…
Reference in a new issue