Fix --all-timestamps

we were accidentally removing the timestamp prefix from `file_id`, rendering that option useless in 2.3.4. This should again now. This will fix #4
This commit is contained in:
Felipe 2025-04-30 13:01:29 +00:00 committed by GitHub
parent 31d51728af
commit 4db13a7792
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -538,10 +538,9 @@ class WaybackMachineDownloader
file_url = file_remote_info[:file_url].encode(current_encoding)
file_id = file_remote_info[:file_id]
file_timestamp = file_remote_info[:timestamp]
original_file_id = @all_timestamps ? file_id.split('/', 2)[1] : file_id
file_path_elements = original_file_id.split('/')
file_path_elements = file_id.split('/')
if original_file_id == ""
if file_id == ""
dir_path = backup_path
file_path = backup_path + 'index.html'
elsif file_url[-1] == '/' or not file_path_elements[-1].include? '.'