diff --git a/lib/wayback_machine_downloader.rb b/lib/wayback_machine_downloader.rb index 730714a..3b9a2bc 100644 --- a/lib/wayback_machine_downloader.rb +++ b/lib/wayback_machine_downloader.rb @@ -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)