From 895bfe6f879a638cdd69b75163bc10ec15ac7fdf Mon Sep 17 00:00:00 2001 From: meeb Date: Thu, 18 Feb 2021 16:35:10 +1100 Subject: [PATCH] scrub % in titles, resolves #55 --- tubesync/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/common/utils.py b/tubesync/common/utils.py index 988b4f1..26aeef8 100644 --- a/tubesync/common/utils.py +++ b/tubesync/common/utils.py @@ -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])