Skip to content

Commit

Permalink
Fixed hartator#264 by adding a 4 second delay per download
Browse files Browse the repository at this point in the history
Currently a bit of a hack - there should probably be a configurable delay parameter.
  • Loading branch information
nicholascc committed Nov 12, 2023
1 parent 653b94b commit f120a1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/wayback_machine_downloader.rb
Expand Up @@ -244,6 +244,7 @@ def structure_dir_path dir_path
end

def download_file file_remote_info
sleep(4)
current_encoding = "".encoding
file_url = file_remote_info[:file_url].encode(current_encoding)
file_id = file_remote_info[:file_id]
Expand Down

0 comments on commit f120a1d

Please sign in to comment.