mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
a984c6198f
commit
9316d8d673
@ -140,8 +140,8 @@ class ComicInput(InputFormatPlugin):
|
|||||||
%comic)
|
%comic)
|
||||||
if self.opts.no_process:
|
if self.opts.no_process:
|
||||||
n2 = []
|
n2 = []
|
||||||
for page in new_pages:
|
for i, page in enumerate(new_pages):
|
||||||
n2.append(os.path.join(tdir2, os.path.basename(page)))
|
n2.append(os.path.join(tdir2, '{} - {}' .format(i, os.path.basename(page))))
|
||||||
shutil.copyfile(page, n2[-1])
|
shutil.copyfile(page, n2[-1])
|
||||||
new_pages = n2
|
new_pages = n2
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user