From c01c08c03b2f3e2216121bfd747a9f7d68e94244 Mon Sep 17 00:00:00 2001 From: Benexl Date: Wed, 3 Dec 2025 10:03:52 +0300 Subject: [PATCH] feat: show welcome screen once a month --- viu_media/cli/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/viu_media/cli/cli.py b/viu_media/cli/cli.py index f981405..df5b939 100644 --- a/viu_media/cli/cli.py +++ b/viu_media/cli/cli.py @@ -121,8 +121,8 @@ def cli(ctx: click.Context, **options: "Unpack[Options]"): last_welcomed_at = float( last_welcomed_at_file.read_text(encoding="utf-8") ) - # runs once a day - if (time.time() - last_welcomed_at) > 24 * 3600: + # runs once a month + if (time.time() - last_welcomed_at) > 30 * 24 * 3600: should_welcome = True except Exception as e: @@ -139,7 +139,7 @@ def cli(ctx: click.Context, **options: "Unpack[Options]"): [green]How are you, {USER_NAME} 🙂? If you enjoy the project and would like to support it, you can buy me a coffee at {SUPPORT_PROJECT_URL}. Would you like to open the support page? Select yes to continue — otherwise, enjoy your terminal-anime browsing experience 😁.[/] -You can disable this message by turning off the welcome_screen option in the config. It only appears once every 24 hours. +You can disable this message by turning off the welcome_screen option in the config. It only appears once a month. """): from webbrowser import open