aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-08-31 09:33:09 +0200
committerlonkaars <loek@pipeframe.xyz>2022-08-31 09:33:09 +0200
commit211b9d4123844c1629f22ff9bb34a5a10eb535d6 (patch)
tree1eb521b41a417865f6a97784a0c28629c51a7173
parent621a1e995f5bc6fb09e3fd3daa3d7608d91777f1 (diff)
add more filters
-rw-r--r--filters.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/filters.py b/filters.py
index bad50e9..2a23553 100644
--- a/filters.py
+++ b/filters.py
@@ -3,6 +3,8 @@ import re
def tag_gen(input_str):
input_str = input_str.lower()
input_str = re.sub(r'aii', '', input_str)
+ input_str = re.sub(r'atd', '', input_str)
+ input_str = re.sub(r'et\/ti', '', input_str)
input_str = re.sub(r'20\d{2}-\d{2}', '', input_str)
input_str = re.sub(r'[pb]\d+', '', input_str)
input_str = re.sub(r'\d', '', input_str)
@@ -11,6 +13,7 @@ def tag_gen(input_str):
input_str = re.sub(r'stylofoon', '', input_str)
input_str = re.sub(r'[-]', '', input_str)
input_str = re.sub(r'\s+', ' ', input_str)
+ input_str = re.sub(r' \(c\+\+\)', '', input_str)
return input_str.strip()
def title_filter(input_str):