Skip to content

Commit d2e774d

Browse files
authored
Fixes #1348 because it annoys me (#1378)
1 parent 625d119 commit d2e774d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PixivUtil2.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def menu_download_by_tags(opisvalid, args, options):
396396
else:
397397
print("Valid values are 'a', 'i', or 'm'.")
398398

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

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

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

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

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

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

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

652652
PixivBookmarkHandler.process_new_illust_from_bookmark(sys.modules[__name__],

0 commit comments

Comments
 (0)