Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Nandaka/PixivUtil2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandaka committed Aug 25, 2022
2 parents f77d2d3 + 590bd88 commit 8bcc554
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions PixivUtil2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,16 @@ def menu_download_by_rank(op_is_valid, args, options, valid_modes=None):
break
else:
print("Invalid Content Type.")
while True:
print(f"Specify the ranking date, valid type is YYYYMMDD (default: today)")
date = input('Date: ').rstrip("\r").lower()
try:
if date != '':
datetime.datetime.strptime(date, "%Y%m%d")
except Exception as ex:
PixivHelper.print_and_log("error", f"Invalid format for ranking date: {date}.")
else:
break
(start_page, end_page) = PixivHelper.get_start_and_end_number()

PixivRankingHandler.process_ranking(sys.modules[__name__],
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- need to update `config.ini` in `[FFmpeg]` section if you have parameter error when encoding to gif.
`gifParam = -filter_complex [0:v]split[a][b];[a]palettegen=stats_mode=diff[p];[b][p]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle`
- Fix #1146: update lxml with html5lib.
- Merge Add date option to ranking download (#1149) by @Toyem

20220804
- Merge fix reencoding backup of files to follow ugoira config (#1131) by @Toyem.
Expand Down

0 comments on commit 8bcc554

Please sign in to comment.