mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 09:46:05 +00:00
Fix issue with index.html pages not loading
we were rejecting empty paths, causing these files to be skipped. How did I miss this?
This commit is contained in:
parent
40e9c9bb51
commit
8c27aaebc9
@ -776,7 +776,8 @@ class WaybackMachineDownloader
|
|||||||
|
|
||||||
# safely sanitize a file id (or id+timestamp)
|
# safely sanitize a file id (or id+timestamp)
|
||||||
def sanitize_and_prepare_id(raw, file_url)
|
def sanitize_and_prepare_id(raw, file_url)
|
||||||
return nil if raw.nil? || raw.empty?
|
return nil if raw.nil?
|
||||||
|
return "" if raw.empty?
|
||||||
original = raw.dup
|
original = raw.dup
|
||||||
begin
|
begin
|
||||||
# work on a binary copy to avoid premature encoding errors
|
# work on a binary copy to avoid premature encoding errors
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user