1
0
Fork 0
mirror of https://github.com/Findus23/cr-search.git synced 2024-09-19 15:23:44 +02:00

fix ignored names

This commit is contained in:
Lukas Winkler 2020-08-11 21:19:28 +02:00
parent 75908aec15
commit 59c02e8548
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -13,8 +13,11 @@ from utils import td_to_milliseconds, srtdir, episode_speaker
def is_invalid_name(name: str) -> bool:
for a in ["PS", "P.S.", "\"P.S", "II", "The US", "Metal Gear", "D&D", "LARP", "D&D", "A", "B"]:
if a.lower() in name.lower():
for substr in ["PS", "P.S.", "\"P.S", "II", "The US", "Metal Gear", "D&D", "LARP", "D&D"]:
if substr.lower() in name.lower():
return True
for string in ["A", "B"]:
if string.lower() == name.lower():
return True
return False