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:
parent
75908aec15
commit
59c02e8548
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue