Skip to content

Commit

Permalink
Fixes #1348 because it annoys me (#1378)
Browse files Browse the repository at this point in the history
  • Loading branch information
KSuiz authored Oct 6, 2024
1 parent 625d119 commit d2e774d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PixivUtil2.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def menu_download_by_tags(opisvalid, args, options):
else:
print("Valid values are 'a', 'i', or 'm'.")

if bookmark_count is not None and len(bookmark_count) > 0:
if bookmark_count is not None and bookmark_count != -1 and len(bookmark_count) > 0:
bookmark_count = int(bookmark_count)

PixivTagsHandler.process_tags(sys.modules[__name__],
Expand Down Expand Up @@ -529,7 +529,7 @@ def menu_download_from_online_user_bookmark(opisvalid, args, options):
(start_page, end_page) = PixivHelper.get_start_and_end_number(total_number_of_page=options.number_of_pages)
bookmark_count = input('Bookmark Count: ').rstrip("\r") or None

if bookmark_count is not None and len(bookmark_count) > 0:
if bookmark_count is not None and bookmark_count != -1 and len(bookmark_count) > 0:
bookmark_count = int(bookmark_count)

PixivBookmarkHandler.process_bookmark(sys.modules[__name__],
Expand Down Expand Up @@ -620,7 +620,7 @@ def menu_download_from_tags_list(opisvalid, args, options):
(page, end_page) = PixivHelper.get_start_and_end_number(total_number_of_page=options.number_of_pages)
(start_date, end_date) = PixivHelper.get_start_and_end_date()

if bookmark_count is not None and len(bookmark_count) > 0:
if bookmark_count is not None and bookmark_count != -1 and len(bookmark_count) > 0:
bookmark_count = int(bookmark_count)

PixivListHandler.process_tags_list(sys.modules[__name__],
Expand All @@ -646,7 +646,7 @@ def menu_download_new_illust_from_bookmark(opisvalid, args, options):
(page_num, end_page_num) = PixivHelper.get_start_and_end_number(total_number_of_page=options.number_of_pages)
bookmark_count = input('Bookmark Count: ').rstrip("\r") or None

if bookmark_count is not None and len(bookmark_count) > 0:
if bookmark_count is not None and bookmark_count != -1 and len(bookmark_count) > 0:
bookmark_count = int(bookmark_count)

PixivBookmarkHandler.process_new_illust_from_bookmark(sys.modules[__name__],
Expand Down

0 comments on commit d2e774d

Please sign in to comment.