mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-29 16:16:06 +00:00
Fix random UTF-8 issues with Ruby 1.9 and JRuby
This commit is contained in:
@@ -73,8 +73,8 @@ class WaybackMachineDownloader
|
|||||||
if @to_timestamp and @to_timestamp != 0
|
if @to_timestamp and @to_timestamp != 0
|
||||||
parameters_for_wayback_machine_api += "&to=" + @to_timestamp.to_s
|
parameters_for_wayback_machine_api += "&to=" + @to_timestamp.to_s
|
||||||
end
|
end
|
||||||
index_file_list_raw = open ("http://web.archive.org/cdx/search/xd?url=#{@base_url}" + parameters_for_wayback_machine_api)
|
index_file_list_raw = open("http://web.archive.org/cdx/search/xd?url=#{@base_url}" + parameters_for_wayback_machine_api)
|
||||||
all_file_list_raw = open ("http://web.archive.org/cdx/search/xd?url=#{@base_url}/*" + parameters_for_wayback_machine_api)
|
all_file_list_raw = open("http://web.archive.org/cdx/search/xd?url=#{@base_url}/*" + parameters_for_wayback_machine_api)
|
||||||
file_list_curated = Hash.new
|
file_list_curated = Hash.new
|
||||||
[index_file_list_raw, all_file_list_raw].each do |file|
|
[index_file_list_raw, all_file_list_raw].each do |file|
|
||||||
file.each_line do |line|
|
file.each_line do |line|
|
||||||
|
|||||||
Reference in New Issue
Block a user