mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
Fix --all-timestamps
we were accidentally removing the timestamp prefix from `file_id`, rendering that option useless in 2.3.4. This should again now. This will fix #4
This commit is contained in:
parent
31d51728af
commit
4db13a7792
@ -538,10 +538,9 @@ class WaybackMachineDownloader
|
|||||||
file_url = file_remote_info[:file_url].encode(current_encoding)
|
file_url = file_remote_info[:file_url].encode(current_encoding)
|
||||||
file_id = file_remote_info[:file_id]
|
file_id = file_remote_info[:file_id]
|
||||||
file_timestamp = file_remote_info[:timestamp]
|
file_timestamp = file_remote_info[:timestamp]
|
||||||
original_file_id = @all_timestamps ? file_id.split('/', 2)[1] : file_id
|
file_path_elements = file_id.split('/')
|
||||||
file_path_elements = original_file_id.split('/')
|
|
||||||
|
|
||||||
if original_file_id == ""
|
if file_id == ""
|
||||||
dir_path = backup_path
|
dir_path = backup_path
|
||||||
file_path = backup_path + 'index.html'
|
file_path = backup_path + 'index.html'
|
||||||
elsif file_url[-1] == '/' or not file_path_elements[-1].include? '.'
|
elsif file_url[-1] == '/' or not file_path_elements[-1].include? '.'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user