mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-07-12 22:22:30 +02:00
Replace "/" in file names with "."
This commit is contained in:
@ -51,7 +51,7 @@ class FfM:
|
||||
|
||||
for found in soup.find_all("a", href=self.LINK_RE):
|
||||
url = found["href"]
|
||||
filename = re.match(self.LINK_RE, url).group(1)
|
||||
filename = re.match(self.LINK_RE, url).group(1).replace("/", ".")
|
||||
logger.debug(f"Found file {filename} at {url}")
|
||||
|
||||
old_path = pathlib.PurePath(filename)
|
||||
|
Reference in New Issue
Block a user