File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ class WaybackMachineDownloader
115
115
include ArchiveAPI
116
116
include SubdomainProcessor
117
117
118
- VERSION = "2.3.11 "
118
+ VERSION = "2.3.12 "
119
119
DEFAULT_TIMEOUT = 30
120
120
MAX_RETRIES = 3
121
121
RETRY_DELAY = 2
@@ -352,6 +352,16 @@ def get_composite_snapshot_file_list(target_timestamp)
352
352
file_versions . values
353
353
end
354
354
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
+
355
365
def get_file_list_curated
356
366
file_list_curated = Hash . new
357
367
get_all_snapshots_to_consider . each do |file_timestamp , file_url |
You can’t perform that action at this time.
0 commit comments