double quota

This commit is contained in:
BennyThink 2022-01-20 09:58:42 +08:00
parent 7155dd3673
commit 1d09449823
No known key found for this signature in database
GPG key ID: 6CD0DBDA5235D481
2 changed files with 2 additions and 2 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.
**In that case, I added one limitation: 5 GiB per 24 hours for each user. Might change in future**
**In that case, I added one limitation: 10 GiB per 24 hours for each user. Might change in future**
You can choose to become 'VIP' if you really need large traffic. And also, you could always deploy your own bot.

View file

@ -18,7 +18,7 @@ TOKEN = os.getenv("TOKEN", "3703WLI")
REDIS = os.getenv("REDIS")
# quota settings
QUOTA = os.getenv("QUOTA", 5 * 1024 * 1024 * 1024) # 5G
QUOTA = int(os.getenv("QUOTA", 10 * 1024 * 1024 * 1024)) # 10G
if os.uname().sysname == "Darwin":
QUOTA = 10 * 1024 * 1024 # 10M