feat: Update Audiobookshelf timeout settings to 3600 seconds for improved upload reliability

This commit is contained in:
JB
2025-11-28 13:00:58 -08:00
parent 7cc60aacf6
commit 39628453de
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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()
+2 -2
View File
@@ -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,
+2 -2
View File
@@ -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,