From 39628453dec98e0e13715791ecbab628178e07dd Mon Sep 17 00:00:00 2001 From: JB Date: Fri, 28 Nov 2025 13:00:58 -0800 Subject: [PATCH] feat: Update Audiobookshelf timeout settings to 3600 seconds for improved upload reliability --- abogen/integrations/audiobookshelf.py | 2 +- abogen/web/routes.py | 4 ++-- abogen/web/service.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/abogen/integrations/audiobookshelf.py b/abogen/integrations/audiobookshelf.py index 40176ad..53c24a3 100644 --- a/abogen/integrations/audiobookshelf.py +++ b/abogen/integrations/audiobookshelf.py @@ -30,7 +30,7 @@ class AudiobookshelfConfig: send_cover: bool = True send_chapters: bool = True send_subtitles: bool = True - timeout: float = 30.0 + timeout: float = 3600.0 def normalized_base_url(self) -> str: base = (self.base_url or "").strip() diff --git a/abogen/web/routes.py b/abogen/web/routes.py index c9ea24d..c430df0 100644 --- a/abogen/web/routes.py +++ b/abogen/web/routes.py @@ -2559,9 +2559,9 @@ def _build_audiobookshelf_config(settings: Mapping[str, Any]) -> Optional[Audiob if not (base_url and api_token and library_id): return None try: - timeout = float(settings.get("timeout", 30.0)) + timeout = float(settings.get("timeout", 3600.0)) except (TypeError, ValueError): - timeout = 30.0 + timeout = 3600.0 return AudiobookshelfConfig( base_url=base_url, api_token=api_token, diff --git a/abogen/web/service.py b/abogen/web/service.py index 2deb312..92f23b1 100644 --- a/abogen/web/service.py +++ b/abogen/web/service.py @@ -1054,11 +1054,11 @@ class ConversionService: job.add_log("Audiobookshelf upload skipped: audio output not found.", level="warning") return - timeout_raw = integration_cfg.get("timeout", 30.0) + timeout_raw = integration_cfg.get("timeout", 3600.0) try: timeout_value = float(timeout_raw) except (TypeError, ValueError): - timeout_value = 30.0 + timeout_value = 3600.0 config = AudiobookshelfConfig( base_url=base_url,