Skip to content
Permalink
Browse files

2.020 fix rename paramater order

  • Loading branch information...
fffonion committed Mar 29, 2019
1 parent c880352 commit beb71fb57cd4bd5853a738885ab8789bdf41772d
Showing with 1 addition and 1 deletion.
  1. +1 −1 xeHentai/task.py
@@ -324,7 +324,7 @@ def rename_fname(self):
break
if _ :# if ...(1) exists, use ...(2)
print(_base)
_base = re.sub("\((\d+)\)$", _base, lambda x:"(%d)" % (int(x.group(1)) + 1))
_base = re.sub("\((\d+)\)$", lambda x:"(%d)" % (int(x.group(1)) + 1), _base)
else:
_base = "%s(1)" % _base
fname_to = "".join((_base, _ext))

0 comments on commit beb71fb

Please sign in to comment.
You can’t perform that action at this time.