mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
don’t append /* when —exact-url
This commit is contained in:
parent
18357a77ed
commit
c3c5b8446a
@ -7,7 +7,8 @@ module ArchiveAPI
|
|||||||
# Automatically append /* if the URL doesn't contain a path after the domain
|
# Automatically append /* if the URL doesn't contain a path after the domain
|
||||||
# This is a workaround for an issue with the API and *some* domains.
|
# This is a workaround for an issue with the API and *some* domains.
|
||||||
# See https://github.com/StrawberryMaster/wayback-machine-downloader/issues/6
|
# See https://github.com/StrawberryMaster/wayback-machine-downloader/issues/6
|
||||||
if url && !url.match(/^https?:\/\/.*\//i)
|
# But don't do this when exact_url flag is set
|
||||||
|
if url && !url.match(/^https?:\/\/.*\//i) && !@exact_url
|
||||||
url = "#{url}/*"
|
url = "#{url}/*"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user