Increase download timeout to 60 minutes for large MTGJSON files
This commit is contained in:
@@ -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)")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user