mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Don't pre-allocate file-space for segmented downloads
This commit is contained in:
		
							parent
							
								
									a3efadf00b
								
							
						
					
					
						commit
						d964dde4d5
					
				@ -62,7 +62,10 @@ def aria2c(
 | 
			
		||||
        "--max-tries", "5",
 | 
			
		||||
        "--max-file-not-found", "5",
 | 
			
		||||
        "--summary-interval", "0",
 | 
			
		||||
        "--file-allocation", config.aria2c.get("file_allocation", "prealloc"),
 | 
			
		||||
        "--file-allocation", [
 | 
			
		||||
            config.aria2c.get("file_allocation", "prealloc"),
 | 
			
		||||
            "none"
 | 
			
		||||
        ][segmented],
 | 
			
		||||
        "--console-log-level", "warn",
 | 
			
		||||
        "--download-result", ["hide", "default"][bool(progress)],
 | 
			
		||||
        *args,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user