Skip to content

Commit

Permalink
Proper update the image counter when downloading artists gallery (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
MonoS authored Dec 7, 2023
1 parent d12cdee commit 38e13de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PixivArtistHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def process_member(caller,
PixivHelper.print_and_log("error", f"Error at process_member(): {sys.exc_info()} Member Id: {member_id}")
PixivHelper.print_delay(2)

no_of_images = no_of_images + 1

if result in (PixivConstant.PIXIVUTIL_SKIP_DUPLICATE,
PixivConstant.PIXIVUTIL_SKIP_LOCAL_LARGER,
PixivConstant.PIXIVUTIL_SKIP_DUPLICATE_NO_WAIT):
Expand All @@ -184,7 +186,6 @@ def process_member(caller,
flag = False
break

no_of_images = no_of_images + 1
PixivHelper.wait(result, config)

if artist.isLastPage:
Expand Down

0 comments on commit 38e13de

Please sign in to comment.