do not replace dashes as it will continuously download files

This commit is contained in:
maru21 2024-12-03 12:41:27 +01:00
parent 9dc69fbaff
commit 19f550aa11

View File

@ -98,7 +98,7 @@ def download_pdf(pdf_link):
return return
file_name = os.path.basename(urlparse(actual_file_url).path) or "downloaded_file.pdf" file_name = os.path.basename(urlparse(actual_file_url).path) or "downloaded_file.pdf"
file_name = file_name.replace('%20', '-') # Replace '%20' with dashes #file_name = file_name.replace('%20', '-') # Replace '%20' with dashes
data_dir = os.path.join(SCRIPT_DIR, "data") data_dir = os.path.join(SCRIPT_DIR, "data")
file_path = os.path.join(data_dir, file_name) file_path = os.path.join(data_dir, file_name)