mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-18 10:16:47 +00:00
Fix UTF-8 blank space issues with Ruby 1.9.x and JRuby
This commit is contained in:
parent
e28e4a8bbf
commit
e508d761c8
@ -78,7 +78,7 @@ class WaybackMachineDownloader
|
|||||||
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|
|
||||||
line = line.split(' ')
|
line = line.split(" ")
|
||||||
file_timestamp = line[0].to_i
|
file_timestamp = line[0].to_i
|
||||||
file_url = line[1]
|
file_url = line[1]
|
||||||
file_id = file_url.split('/')[3..-1].join('/')
|
file_id = file_url.split('/')[3..-1].join('/')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user