mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-26 12:51:15 -08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95586eb36f | ||
|
|
c01c08c03b | ||
|
|
14e1f44696 | ||
|
|
36b71c0751 |
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "viu-media"
|
||||
version = "3.3.0"
|
||||
version = "3.3.2"
|
||||
description = "A browser anime site experience from the terminal"
|
||||
license = "UNLICENSE"
|
||||
readme = "README.md"
|
||||
|
||||
2
uv.lock
generated
2
uv.lock
generated
@@ -3743,7 +3743,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "viu-media"
|
||||
version = "3.3.0"
|
||||
version = "3.3.2"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "click" },
|
||||
|
||||
@@ -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:
|
||||
@@ -136,10 +136,10 @@ def cli(ctx: click.Context, **options: "Unpack[Options]"):
|
||||
from rich.prompt import Confirm
|
||||
|
||||
if Confirm.ask(f"""\
|
||||
[green]How are you {USER_NAME} 🙂?
|
||||
If you like the project and are able to support it please consider buying me a coffee at {SUPPORT_PROJECT_URL}.
|
||||
If you would like to proceed to {SUPPORT_PROJECT_URL} select yes, otherwise enjoy your browser anime experience 😁.[/]
|
||||
This message can be disabled by switching off the welcome_screen option in the config and is only shown once every 24hrs.
|
||||
[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 a month.
|
||||
"""):
|
||||
from webbrowser import open
|
||||
|
||||
|
||||
Reference in New Issue
Block a user