Skip to content

Commit

Permalink
2.020 fix rename paramater order
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Mar 29, 2019
1 parent c880352 commit beb71fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xeHentai/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit beb71fb

Please sign in to comment.