Download Backend/config.py from DevDoCode/stremio: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/spaces/DevDoCode/stremio/resolve/f697c3bcf837899bc6efd34c0edbeb1a6fccd6bf/Backend/config.py
- Command line
-
hf download hf://spaces/DevDoCode/stremio@f697c3bcf837899bc6efd34c0edbeb1a6fccd6bf/Backend/config.py
-
curl -L -o config.py https://huggingface.co/spaces/DevDoCode/stremio/resolve/f697c3bcf837899bc6efd34c0edbeb1a6fccd6bf/Backend/config.py
1.23 kB
| from os import getenv, path | |
| from dotenv import load_dotenv | |
| load_dotenv(path.join(path.dirname(path.dirname(__file__)), "config.env")) | |
| class Telegram: | |
| API_ID = int(getenv("API_ID", "0")) | |
| API_HASH = getenv("API_HASH", "") | |
| BOT_TOKEN = getenv("BOT_TOKEN", "") | |
| HELPER_BOT_TOKEN = getenv("HELPER_BOT_TOKEN", "") | |
| BASE_URL = getenv("BASE_URL", "").rstrip('/') | |
| PORT = int(getenv("PORT", "8000")) | |
| PARALLEL = int(getenv("PARALLEL", "1")) | |
| PRE_FETCH = int(getenv("PRE_FETCH", "1")) | |
| AUTH_CHANNEL = [channel.strip() for channel in (getenv("AUTH_CHANNEL") or "").split(",") if channel.strip()] | |
| DATABASE = [db.strip() for db in (getenv("DATABASE") or "").split(",") if db.strip()] | |
| TMDB_API = getenv("TMDB_API", "") | |
| UPSTREAM_REPO = getenv("UPSTREAM_REPO", "") | |
| UPSTREAM_BRANCH = getenv("UPSTREAM_BRANCH", "") | |
| OWNER_ID = int(getenv("OWNER_ID", "5422223708")) | |
| REPLACE_MODE = getenv("REPLACE_MODE", "true").lower() == "true" | |
| HIDE_CATALOG = getenv("HIDE_CATALOG", "false").lower() == "true" | |
| # SKIP_MULTIPART = getenv("SKIP_MULTIPART", "true").lower() == "true" | |
| ADMIN_USERNAME = getenv("ADMIN_USERNAME", "fyvio") | |
| ADMIN_PASSWORD = getenv("ADMIN_PASSWORD", "fyvio") | |