Added code that generates playlist and epg
All checks were successful
AWS Deploy on Push / build (push) Successful in 1m14s
All checks were successful
AWS Deploy on Push / build (push) Successful in 1m14s
This commit is contained in:
15
app/cabletv/utils/config.py
Normal file
15
app/cabletv/utils/config.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
# Load environment variables from a .env file if it exists
|
||||
load_dotenv()
|
||||
|
||||
IPTV_SERVER_URL = os.getenv("IPTV_SERVER_URL", "https://iptv.fiorinis.com")
|
||||
|
||||
# Super iptv-server admin credentials for basic auth
|
||||
# Reads from environment variables IPTV_SERVER_ADMIN_USER and IPTV_SERVER_ADMIN_PASSWORD
|
||||
IPTV_SERVER_ADMIN_USER = os.getenv("IPTV_SERVER_ADMIN_USER", "admin")
|
||||
IPTV_SERVER_ADMIN_PASSWORD = os.getenv("IPTV_SERVER_ADMIN_PASSWORD", "adminpassword")
|
||||
|
||||
# URL for the EPG XML file to place in the playlist's header
|
||||
EPG_URL = os.getenv("EPG_URL", "https://example.com/epg.xml.gz")
|
||||
Reference in New Issue
Block a user