mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
Show 404 archives when a resource had 200 response previously
This commit is contained in:
parent
6f10fc64ff
commit
87eee70969
@ -10,9 +10,11 @@ module ArchiveAPI
|
||||
end
|
||||
|
||||
def parameters_for_api
|
||||
parameters = "&fl=timestamp,original&collapse=original&gzip=false"
|
||||
unless @all
|
||||
parameters += "&filter=statuscode:200"
|
||||
parameters = "&fl=timestamp,original&gzip=false"
|
||||
if @all
|
||||
parameters += "&collapse=digest"
|
||||
else
|
||||
parameters += "&filter=statuscode:200&collapse=original"
|
||||
end
|
||||
if @from_timestamp and @from_timestamp != 0
|
||||
parameters += "&from=" + @from_timestamp.to_s
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user