Comic Input: Fix incorrect processing of comics with pages that have the same file names in different folders when using the "No process" option. Fixes #1831487 [Private bug](https://bugs.launchpad.net/calibre/+bug/1831487)

This commit is contained in:
Kovid Goyal 2019-06-09 11:21:04 +05:30
parent a984c6198f
commit 9316d8d673
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -140,8 +140,8 @@ class ComicInput(InputFormatPlugin):
%comic)
if self.opts.no_process:
n2 = []
for page in new_pages:
n2.append(os.path.join(tdir2, os.path.basename(page)))
for i, page in enumerate(new_pages):
n2.append(os.path.join(tdir2, '{} - {}' .format(i, os.path.basename(page))))
shutil.copyfile(page, n2[-1])
new_pages = n2
else: