Replace "/" in file names with "."

This commit is contained in:
Joscha
2018-12-14 09:27:12 +00:00
parent 616a8d96a2
commit 3019e4255b
2 changed files with 3 additions and 3 deletions

View File

@ -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)