This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user