continuous stream
Build and Push Docker Images / build-and-push (push) Successful in 22s

This commit is contained in:
2026-02-11 22:14:14 +01:00
parent bc4a834e46
commit 6348ecb732
4 changed files with 71 additions and 12 deletions
+13 -1
View File
@@ -7,7 +7,14 @@ with randomized order so the same show never appears twice in a row.
import logging
import os
from iptv.config import CHANNELS_FILE, EPG_TIMESPAN_DAYS, SCHEDULE_CACHE_TTL_SEC, init_epg_timespan
from iptv.config import (
CHANNELS_FILE,
EPG_TIMESPAN_DAYS,
SCHEDULE_CACHE_TTL_SEC,
NORMALIZE_LIVE_STREAM,
NORMALIZE_TARGET_RES,
init_epg_timespan,
)
from iptv.cache import CacheManager
from iptv.channel import ChannelRepository
from iptv.schedule import ScheduleBuilder
@@ -34,6 +41,11 @@ def main():
EPG_TIMESPAN_DAYS,
SCHEDULE_CACHE_TTL_SEC / 3600,
)
if NORMALIZE_LIVE_STREAM:
logger.info(
"Live stream normalization enabled (target: %s) — prevents crashes when switching episodes",
NORMALIZE_TARGET_RES,
)
channel_repo = ChannelRepository()
schedule_builder = ScheduleBuilder()