From 8fa3cb4aa11594c039910c7debb3cba7c99e3131 Mon Sep 17 00:00:00 2001 From: Benny Date: Fri, 4 Nov 2022 16:59:55 +0800 Subject: [PATCH] Revert "Now VIP can be disabled, Previously "False" counted as True because string to boolean conversion (#155)" This reverts commit d44f57c45c1bcf51e0cd3340f14cdd004948a60b. --- ytdlbot/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytdlbot/config.py b/ytdlbot/config.py index c47bf7c..e8d84ad 100644 --- a/ytdlbot/config.py +++ b/ytdlbot/config.py @@ -30,7 +30,7 @@ EX = os.getenv("EX", 24 * 3600) MULTIPLY = os.getenv("MULTIPLY", 5) # VIP1 is 5*5-25G, VIP2 is 50G USD2CNY = os.getenv("USD2CNY", 6) # $5 --> ¥30 -ENABLE_VIP: "bool" = True if os.getenv("VIP", False).lower == "true" else False +ENABLE_VIP = os.getenv("VIP", False) MAX_DURATION = int(os.getenv("MAX_DURATION", 60)) AFD_LINK = os.getenv("AFD_LINK", "https://afdian.net/@BennyThink") COFFEE_LINK = os.getenv("COFFEE_LINK", "https://www.buymeacoffee.com/bennythink")