# --- Xtream Codes login (used inside TiviMate) ---
XC_USER=username               # you create this and enter in Xtreme Code
XC_PASS=password               # you create this and enter in Xtreme Code

# --- Your IPTV provider M3U playlist URLs ---
MOVIE_M3U_URL="https://url_to_movie_provider/MoviesVOD"
SERIES_M3U_URL="https://url_to_series_provider/SeriesVOD"

# --- TMDb (for posters/plots) ---
TMDB_API_KEY="enter_your_tmdb_api_key"
POSTER_PREFERENCE=tmdb         # tmdb | m3u (Only an option if your m3u has images)
TMDB_ON_LIST=false             # reduces timeouts & load
XC_ENRICH_DETAILS=1            # 1 is details on, 0 is details off

# --- Behavior ---
CACHE_TTL=14400                # refresh every 14400s (4 hours)
STREAM_MODE=redirect           # redirect (default) | proxy
SERIES_GROUPING=smart          # smart | flat
HOST_IP=127.0.0.1              # used only for /get.php links

# --- Metadata cache file inside container ---
META_CACHE_FILE=/cache/tmdb_cache.json

# --- Categories in TiviMate (TMDb-driven) ---
CATEGORY_MODE=default          # default(no categories) | genre (adds categories based on genre like Action, Comedy, etc.)
CATEGORY_PICK_FIRST=true       # if a title has multiple TMDb genres, pick the alphabetical first

# --- De-duplication (one variant per title/episode) ---
DEDUPE=false                   # true=keep one; false=keep all
PREF_QUALITY=2160p,1080p,720p,480p
PREF_SOURCE=remux,bluray,web,webrip,other   # You can also optionally append: ,dvd,ts,tc,cam

# If you want category building to fetch missing TMDb on list responses:
TMDB_ON_LIST=false              # false=use cache only; true=fetch if missing (heavier)
