feat: Add update check interval configuration and implement rate limiting for update checks

This commit is contained in:
Andy
2025-07-30 23:36:59 +00:00
parent 22c9aa195e
commit 46c28fe943
3 changed files with 88 additions and 2 deletions

View File

@@ -79,6 +79,7 @@ class Config:
self.tag: str = kwargs.get("tag") or ""
self.tmdb_api_key: str = kwargs.get("tmdb_api_key") or ""
self.update_checks: bool = kwargs.get("update_checks", True)
self.update_check_interval: int = kwargs.get("update_check_interval", 24)
@classmethod
def from_yaml(cls, path: Path) -> Config: