300 duration by default

This commit is contained in:
BennyThink 2022-02-03 10:57:28 +08:00
parent 7615344169
commit 33fca860ec
No known key found for this signature in database
GPG key ID: 6CD0DBDA5235D481
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ Websites [supported by youtube-dl](https://ytdl-org.github.io/youtube-dl/support
I don't have unlimited servers and bandwidth, so I have to make some restrictions.
* 10 GiB one-way traffic per 24 hours for each user
* maximum 10 minutes streaming conversion support
* maximum 5 minutes streaming conversion support
You can choose to become 'VIP' if you really need large traffic. And also, you could always deploy your own bot.

View file

@ -30,7 +30,7 @@ MULTIPLY = os.getenv("MULTIPLY", 5) # VIP1 is 5*5-25G, VIP2 is 50G
USD2CNY = os.getenv("USD2CNY", 6) # $5 --> ¥30
ENABLE_VIP = os.getenv("VIP", False)
MAX_DURATION = int(os.getenv("MAX_DURATION", 600))
MAX_DURATION = int(os.getenv("MAX_DURATION", 300))
AFD_LINK = os.getenv("AFD_LINK", "https://afdian.net/@BennyThink")
COFFEE_LINK = os.getenv("COFFEE_LINK", "https://www.buymeacoffee.com/bennythink")
COFFEE_TOKEN = os.getenv("COFFEE_TOKEN")

View file

@ -26,7 +26,7 @@ class BotText:
In order to avoid being abused,
every one can use this bot within **{sizeof_fmt(QUOTA)} of quota for every {int(EX / 3600)} hours.**
3. Free users can't receive streaming formats of one video whose duration is longer than 600 seconds.
3. Free users can't receive streaming formats of one video whose duration is longer than 300 seconds.
4. You can optionally choose to become 'VIP' user if you need more traffic. Type /vip for more information.