Skip to content

Commit

Permalink
scrub % in titles, resolves #55
Browse files Browse the repository at this point in the history
  • Loading branch information
meeb committed Feb 18, 2021
1 parent e0669b1 commit 895bfe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tubesync/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 895bfe6

Please sign in to comment.