Sanitize booklet filename

Signed-off-by: nathom <nathanthomas707@gmail.com>
This commit is contained in:
nathom 2021-07-11 11:32:04 -07:00
parent 05235b7080
commit 7b02ef9d42

View file

@ -929,7 +929,9 @@ class Booklet:
:type parent_folder: str
:param kwargs:
"""
filepath = os.path.join(parent_folder, f"{self.description}.pdf")
filepath = os.path.join(
parent_folder, f"{sanitize_filename(self.description)}.pdf"
)
tqdm_download(self.url, filepath)
def type(self) -> str: