mirror of
https://github.com/nathom/streamrip.git
synced 2024-09-19 11:18:45 -04:00
Fix missing import (#588)
This commit is contained in:
parent
c6b29c2fab
commit
c2b4c38e2f
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
from string import printable
|
from string import printable
|
||||||
|
|
||||||
from pathvalidate import sanitize_filename # type: ignore
|
from pathvalidate import sanitize_filename, sanitize_filepath # type: ignore
|
||||||
|
|
||||||
ALLOWED_CHARS = set(printable)
|
ALLOWED_CHARS = set(printable)
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ def clean_filename(fn: str, restrict: bool = False) -> str:
|
||||||
|
|
||||||
return path
|
return path
|
||||||
|
|
||||||
|
|
||||||
def clean_filepath(fn: str, restrict: bool = False) -> str:
|
def clean_filepath(fn: str, restrict: bool = False) -> str:
|
||||||
path = str(sanitize_filepath(fn))
|
path = str(sanitize_filepath(fn))
|
||||||
if restrict:
|
if restrict:
|
||||||
|
|
Loading…
Reference in a new issue