mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-22 04:06:51 +00:00
typo fix
This commit is contained in:
parent
840c763ee4
commit
b38d528656
@ -34,7 +34,6 @@ There are a few constants that can be edited in the `wayback_machine_downloader.
|
|||||||
- `RETRY_DELAY` - The delay (in seconds) between retries for HTTP requests. Default is 2 seconds.
|
- `RETRY_DELAY` - The delay (in seconds) between retries for HTTP requests. Default is 2 seconds.
|
||||||
- `RATE_LIMIT` - The rate limit (in seconds) for HTTP requests. Default is 0.25 seconds.
|
- `RATE_LIMIT` - The rate limit (in seconds) for HTTP requests. Default is 0.25 seconds.
|
||||||
- `CONNECTION_POOL_SIZE` - The size of the HTTP connection pool. Default is 10 connections.
|
- `CONNECTION_POOL_SIZE` - The size of the HTTP connection pool. Default is 10 connections.
|
||||||
- `HTTP_CACHE_SIZE` - The size of the HTTP cache. Default is 1000.
|
|
||||||
- `MEMORY_BUFFER_SIZE` - The size of the memory buffer (in bytes) for downloads. Default is 16KB.
|
- `MEMORY_BUFFER_SIZE` - The size of the memory buffer (in bytes) for downloads. Default is 16KB.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@ -135,7 +135,7 @@ class WaybackMachineDownloader
|
|||||||
@exclude_filter = params[:exclude_filter]
|
@exclude_filter = params[:exclude_filter]
|
||||||
@all = params[:all]
|
@all = params[:all]
|
||||||
@maximum_pages = params[:maximum_pages] ? params[:maximum_pages].to_i : 100
|
@maximum_pages = params[:maximum_pages] ? params[:maximum_pages].to_i : 100
|
||||||
@threads_count = [params[:threads_count].to_i, 1].max # Garante mínimo de 1 thread
|
@threads_count = [params[:threads_count].to_i, 1].max
|
||||||
@timeout = params[:timeout] || DEFAULT_TIMEOUT
|
@timeout = params[:timeout] || DEFAULT_TIMEOUT
|
||||||
@logger = setup_logger
|
@logger = setup_logger
|
||||||
@failed_downloads = Concurrent::Array.new
|
@failed_downloads = Concurrent::Array.new
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user