Skip to content

Commit 973c754

Browse files
committed
Check file_id_and_timestamp for nil instead in get_file_list_all_timestamps
file_list_curated array uses file_id_and_timestamp as the index not file_id. Fixes: #190
1 parent 653b94b commit 973c754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/wayback_machine_downloader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def get_file_list_all_timestamps
134134
file_id_and_timestamp = [file_timestamp, file_id].join('/')
135135
file_id_and_timestamp = CGI::unescape file_id_and_timestamp
136136
file_id_and_timestamp = file_id_and_timestamp.tidy_bytes unless file_id_and_timestamp == ""
137-
if file_id.nil?
137+
if file_id_and_timestamp.nil?
138138
puts "Malformed file url, ignoring: #{file_url}"
139139
else
140140
if match_exclude_filter(file_url)

0 commit comments

Comments
 (0)