Files
streamlink-server/run.py

19 lines
474 B
Python

import logging
import os
import sys
# Add the src directory to Python path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src"))
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
logger = logging.getLogger(__name__)
if __name__ == "__main__":
import uvicorn
uvicorn.run(
"src.stream_link_server:app",
host="0.0.0.0",
port=8080,
reload=True,
workers=2
)