From 0b27e3cb4d43f26d45840a4aa5efa84ada7d113c Mon Sep 17 00:00:00 2001 From: g0ldyy <153996346+g0ldyy@users.noreply.github.com> Date: Sun, 4 Jan 2026 22:48:39 +0100 Subject: [PATCH] fix: remove 60-second minimum for live torrent cache update interval calculation --- comet/services/torrent_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comet/services/torrent_manager.py b/comet/services/torrent_manager.py index 81353f1..26fa6b6 100644 --- a/comet/services/torrent_manager.py +++ b/comet/services/torrent_manager.py @@ -701,7 +701,7 @@ def _get_torrent_upsert_query(conflict_key: str) -> str: UPDATE_INTERVAL = 31536000 # Default 1 year if settings.LIVE_TORRENT_CACHE_TTL >= 0: - UPDATE_INTERVAL = max(60, settings.LIVE_TORRENT_CACHE_TTL // 2) + UPDATE_INTERVAL = settings.LIVE_TORRENT_CACHE_TTL // 2 async def _upsert_torrent_record(params: dict):