Increase Jellyfin API timeout default to 120
Raise the default Jellyfin API timeout for bulk operations from 30s to 120s to better handle slow servers and large database syncs. Updated core/jellyfin_client.py to set bulk_timeout to 120, webui/index.html to show 120s in the settings input, and webui/static/script.js to use 120 as the fallback when loading settings. Aligns UI and client behavior to reduce timeout errors during heavy syncs.
This commit is contained in:
parent
70156bdb98
commit
477615593e
3 changed files with 4 additions and 4 deletions
|
|
@ -454,7 +454,7 @@ class JellyfinClient:
|
|||
# Use configurable timeout for bulk operations (lots of data)
|
||||
is_bulk_operation = params and params.get('Limit', 0) > 1000
|
||||
config = config_manager.get_jellyfin_config()
|
||||
bulk_timeout = int(config.get('api_timeout', 30))
|
||||
bulk_timeout = int(config.get('api_timeout', 120))
|
||||
timeout = bulk_timeout if is_bulk_operation else max(5, bulk_timeout // 6)
|
||||
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -2947,8 +2947,8 @@
|
|||
|
||||
<div class="form-group">
|
||||
<label>API Timeout (seconds):</label>
|
||||
<input type="number" id="jellyfin-timeout" placeholder="30" min="15"
|
||||
max="300" value="30">
|
||||
<input type="number" id="jellyfin-timeout" placeholder="120" min="15"
|
||||
max="300" value="120">
|
||||
<small style="color: #888; display: block; margin-top: 5px;">Timeout for
|
||||
bulk API requests during database sync (15-300s). Increase if your
|
||||
Jellyfin server is slow to respond.</small>
|
||||
|
|
|
|||
|
|
@ -1787,7 +1787,7 @@ async function loadSettingsData() {
|
|||
// Populate Jellyfin settings
|
||||
document.getElementById('jellyfin-url').value = settings.jellyfin?.base_url || '';
|
||||
document.getElementById('jellyfin-api-key').value = settings.jellyfin?.api_key || '';
|
||||
document.getElementById('jellyfin-timeout').value = settings.jellyfin?.api_timeout || 30;
|
||||
document.getElementById('jellyfin-timeout').value = settings.jellyfin?.api_timeout || 120;
|
||||
|
||||
// Populate Navidrome settings
|
||||
document.getElementById('navidrome-url').value = settings.navidrome?.base_url || '';
|
||||
|
|
|
|||
Loading…
Reference in a new issue