forked from jigarvarma2k20/Streaming-Link-Gen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
33 lines (31 loc) · 1.33 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os
class Config(object):
# get a token from @BotFather
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "")
# Get these values from my.telegram.org
APP_ID = int(os.environ.get("APP_ID", 1234567))
API_HASH = os.environ.get("API_HASH", "")
# Your Updates channel username
UPDATES_CHANNEL = os.environ.get("UPDATES_CHANNEL", None)
# token.pickle file link
TOKEN_PICKLE = os.environ.get("TOKEN_PICKLE", None)
# the download location, where the HTTP Server runs
DOWNLOAD_LOCATION = "./DOWNLOADS"
# Google drive folder id
parent_id = os.environ.get("GDRIVE_FOLDER_ID", "")
# Set True is drive folder id is Team Drive
IS_TEAM_DRIVE = os.environ.get("IS_TEAM_DRIVE", "False")
if IS_TEAM_DRIVE.lower() == 'true':
IS_TEAM_DRIVE = True
else:
IS_TEAM_DRIVE = False
# Set it True if using Service Account for uploading
USE_SERVICE_ACCOUNTS = os.environ.get("USE_SERVICE_ACCOUNTS", "False")
if USE_SERVICE_ACCOUNTS.lower() == 'true':
USE_SERVICE_ACCOUNTS = True
else:
USE_SERVICE_ACCOUNTS = False
# Your gdrive index url (Important)
INDEX_URL = os.environ.get("INDEX_URL", "")
# Your web video player url check 'https://github.com/Jigarvarma2005/video-player'
VIDEO_PLAYER_URL = os.environ.get("VIDEO_PLAYER_URL", "jv-stream.herokuapp.com")