Skip to content

Commit

Permalink
Check file_id_and_timestamp for nil instead in get_file_list_all_time…
Browse files Browse the repository at this point in the history
…stamps

file_list_curated array uses file_id_and_timestamp as the index not file_id.

Fixes: #190
  • Loading branch information
pabs3 committed Sep 4, 2021
1 parent cf770c2 commit 04a6595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wayback_machine_downloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def get_file_list_all_timestamps
file_id_and_timestamp = [file_timestamp, file_id].join('/')
file_id_and_timestamp = CGI::unescape file_id_and_timestamp
file_id_and_timestamp = file_id_and_timestamp.tidy_bytes unless file_id_and_timestamp == ""
if file_id.nil?
if file_id_and_timestamp.nil?
puts "Malformed file url, ignoring: #{file_url}"
else
if match_exclude_filter(file_url)
Expand Down

0 comments on commit 04a6595

Please sign in to comment.