diff --git a/streamrip/filepath_utils.py b/streamrip/filepath_utils.py index 7cb67d4..0613e76 100644 --- a/streamrip/filepath_utils.py +++ b/streamrip/filepath_utils.py @@ -1,6 +1,6 @@ from string import printable -from pathvalidate import sanitize_filename # type: ignore +from pathvalidate import sanitize_filename, sanitize_filepath # type: ignore ALLOWED_CHARS = set(printable) @@ -12,6 +12,7 @@ def clean_filename(fn: str, restrict: bool = False) -> str: return path + def clean_filepath(fn: str, restrict: bool = False) -> str: path = str(sanitize_filepath(fn)) if restrict: