Increase download timeout to 60 minutes for large MTGJSON files

This commit is contained in:
2026-07-20 04:38:53 +00:00
parent d347e0e586
commit 20fb57258b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ class MTGJSONManager:
# Calculate timeout based on estimated file size
# Large files (>100MB) get up to 60 minutes
estimated_mb = self._get_estimated_size(filename)
timeout = max(1200, estimated_mb * 8) # At least 20 min, 8x estimated MB
timeout = max(3600, estimated_mb * 8) # At least 60 min, 8x estimated MB
logger.info(f"Downloading {filename} from {url} (timeout: {timeout}s, est: {estimated_mb}MB)")