mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-13 06:34:45 -04:00
Sanitize booklet filename
Signed-off-by: nathom <nathanthomas707@gmail.com>
This commit is contained in:
parent
05235b7080
commit
7b02ef9d42
1 changed files with 3 additions and 1 deletions
|
@ -929,7 +929,9 @@ class Booklet:
|
||||||
:type parent_folder: str
|
:type parent_folder: str
|
||||||
:param kwargs:
|
: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)
|
tqdm_download(self.url, filepath)
|
||||||
|
|
||||||
def type(self) -> str:
|
def type(self) -> str:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue