Correction for downloaded data folder

if you downloaded content from example.org/*, it would be listed in a folder titled * instead of the sitename. See #6 (and thanks to elidickinson for pointing it out!)
This commit is contained in:
Felipe 2025-05-30 14:00:32 +00:00 committed by GitHub
parent 9452411e32
commit f38756dd76

View File

@ -154,10 +154,12 @@ class WaybackMachineDownloader
end end
def backup_name def backup_name
if @base_url.include? '//' url_to_process = @base_url.end_with?('/*') ? @base_url.chomp('/*') : @base_url
@base_url.split('/')[2]
if url_to_process.include? '//'
url_to_process.split('/')[2]
else else
@base_url url_to_process
end end
end end