mirror of
https://github.com/anasty17/mirror-leech-telegram-bot.git
synced 2025-01-08 12:07:33 +08:00
Minor edit
This commit is contained in:
parent
afdae3f2a7
commit
49c2e165b6
@ -2,8 +2,10 @@ from anytree import NodeMixin
|
||||
from re import findall as re_findall
|
||||
from os import environ
|
||||
|
||||
DOWNLOAD_DIR = environ.get('DOWNLOAD_DIR')
|
||||
if not DOWNLOAD_DIR.endswith("/"):
|
||||
DOWNLOAD_DIR = environ.get('DOWNLOAD_DIR', '')
|
||||
if len(DOWNLOAD_DIR) == 0:
|
||||
DOWNLOAD_DIR = '/usr/src/app/downloads/'
|
||||
elif not DOWNLOAD_DIR.endswith("/"):
|
||||
DOWNLOAD_DIR = f'{DOWNLOAD_DIR}/'
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user