diff --git a/PixivUtil2.py b/PixivUtil2.py index cd8071ac..3ed25af0 100644 --- a/PixivUtil2.py +++ b/PixivUtil2.py @@ -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__], diff --git a/changelog.txt b/changelog.txt index dd8a26b9..c5b303af 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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.