From 51becde916e981cb6f0fef312cacc5e2faaf7e4b Mon Sep 17 00:00:00 2001 From: Felipe <41008398+StrawberryMaster@users.noreply.github.com> Date: Sat, 26 Jul 2025 21:01:40 +0000 Subject: [PATCH] Minor fix --- lib/wayback_machine_downloader.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/wayback_machine_downloader.rb b/lib/wayback_machine_downloader.rb index cf6c2e4..0f607ac 100644 --- a/lib/wayback_machine_downloader.rb +++ b/lib/wayback_machine_downloader.rb @@ -115,7 +115,7 @@ class WaybackMachineDownloader include ArchiveAPI include SubdomainProcessor - VERSION = "2.3.11" + VERSION = "2.3.12" DEFAULT_TIMEOUT = 30 MAX_RETRIES = 3 RETRY_DELAY = 2 @@ -352,6 +352,16 @@ class WaybackMachineDownloader file_versions.values end + # Returns a list of files for the composite snapshot + def get_file_list_composite_snapshot(target_timestamp) + file_list = get_composite_snapshot_file_list(target_timestamp) + file_list = file_list.sort_by { |_,v| v[:timestamp].to_s }.reverse + file_list.map do |file_remote_info| + file_remote_info[1][:file_id] = file_remote_info[0] + file_remote_info[1] + end + end + def get_file_list_curated file_list_curated = Hash.new get_all_snapshots_to_consider.each do |file_timestamp, file_url|