Skip to content

Commit 51becde

Browse files
Minor fix
1 parent c30ee73 commit 51becde

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/wayback_machine_downloader.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class WaybackMachineDownloader
115115
include ArchiveAPI
116116
include SubdomainProcessor
117117

118-
VERSION = "2.3.11"
118+
VERSION = "2.3.12"
119119
DEFAULT_TIMEOUT = 30
120120
MAX_RETRIES = 3
121121
RETRY_DELAY = 2
@@ -352,6 +352,16 @@ def get_composite_snapshot_file_list(target_timestamp)
352352
file_versions.values
353353
end
354354

355+
# Returns a list of files for the composite snapshot
356+
def get_file_list_composite_snapshot(target_timestamp)
357+
file_list = get_composite_snapshot_file_list(target_timestamp)
358+
file_list = file_list.sort_by { |_,v| v[:timestamp].to_s }.reverse
359+
file_list.map do |file_remote_info|
360+
file_remote_info[1][:file_id] = file_remote_info[0]
361+
file_remote_info[1]
362+
end
363+
end
364+
355365
def get_file_list_curated
356366
file_list_curated = Hash.new
357367
get_all_snapshots_to_consider.each do |file_timestamp, file_url|

0 commit comments

Comments
 (0)