Implement full media crawler workflow with Flask backend and Vue frontend.
Add TMDB search and media detail pages, HDHive resource ingestion flow, unified error handling, Docker single-container runtime, and project docs/config updates for local deployment. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
31
backend/config.py
Normal file
31
backend/config.py
Normal file
@@ -0,0 +1,31 @@
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
class Config:
|
||||
FLASK_RUN_PORT = int(os.getenv("FLASK_RUN_PORT", "14620"))
|
||||
FLASK_DEBUG = os.getenv("FLASK_DEBUG", "1") == "1"
|
||||
|
||||
TMDB_BASE_URL = os.getenv("TMDB_BASE_URL", "https://api.themoviedb.org/3")
|
||||
TMDB_TOKEN = os.getenv("TMDB_TOKEN", "")
|
||||
|
||||
HDHIVE_BASE_URL = os.getenv("HDHIVE_BASE_URL", "https://hdhive.com")
|
||||
HDHIVE_API_KEY = os.getenv("HDHIVE_API_KEY", "")
|
||||
HDHIVE_ACCESS_TOKEN = os.getenv("HDHIVE_ACCESS_TOKEN", "")
|
||||
|
||||
CMS_BASE_URL = os.getenv("CMS_BASE_URL", "")
|
||||
CMS_TOKEN = os.getenv("CMS_TOKEN", "")
|
||||
CMS_LOGIN_URL = os.getenv("CMS_LOGIN_URL", "")
|
||||
CMS_ADD_SHARE_URL = os.getenv("CMS_ADD_SHARE_URL", "")
|
||||
CMS_USERNAME = os.getenv("CMS_USERNAME", "")
|
||||
CMS_PASSWORD = os.getenv("CMS_PASSWORD", "")
|
||||
|
||||
EMBY_BASE_URL = os.getenv("EMBY_BASE_URL", "")
|
||||
EMBY_TOKEN = os.getenv("EMBY_TOKEN", "")
|
||||
|
||||
TLS_INSECURE_SKIP_VERIFY = os.getenv("TLS_INSECURE_SKIP_VERIFY", "0") == "1"
|
||||
|
||||
MAX_RETRY = int(os.getenv("MAX_RETRY", "3"))
|
||||
RETRY_DELAY_MS = int(os.getenv("RETRY_DELAY_MS", "500"))
|
||||
Reference in New Issue
Block a user