scrub % in titles, resolves #55
This commit is contained in:
parent
e0669b107d
commit
895bfe6f87
|
@ -19,7 +19,7 @@ def append_uri_params(uri, params):
|
|||
def clean_filename(filename):
|
||||
if not isinstance(filename, str):
|
||||
raise ValueError(f'filename must be a str, got {type(filename)}')
|
||||
to_scrub = '<>\/:*?"|'
|
||||
to_scrub = '<>\/:*?"|%'
|
||||
for char in to_scrub:
|
||||
filename = filename.replace(char, '')
|
||||
filename = ''.join([c for c in filename if ord(c) > 30])
|
||||
|
|
Loading…
Reference in New Issue