woop ty for all the support and love!
some content creators put multiple game tags in their descriptions or tags and it was getting through the filter, wrote an explicit check to further filter out diablo content from future posts/videos.
"
diablo_terms = [
"activision",
"adria",
"airidah",
"airidah",
"andariel",
"andariel",
"arreat",
"ashava the pestilent",
"astaroth",
"avarice the gold",
"azmodan",
"baal",
"belial",
"blizzard entertainment",
"blizzard north",
"blizzard",
"blizzcon",
"blood bishop",
"brol",
"broodguard",
"caldeum",
"d2",
"d3",
"d4",
"deckard cain",
"diablo 2",
"diablo 3",
"diablo 4",
"diablo ii",
"diablo iii",
"diablo iv",
"diablo",
"dry steppes",
"duriel",
"duriel",
"echo of varshan",
"elias",
"fractured peaks",
"genbar",
"grigoire",
"hawezar",
"horadrim",
"inarius",
"karum",
"kehjistan",
"khanduras",
"khazra abomination",
"lazarus",
"leah",
"lilith's lament",
"lilith",
"lillith",
"malphas ",
"maphisto",
"mother's judgement",
"na-krul",
"ninsa",
"rathma",
"reaper of souls",
"resurrected malice",
"rift guardian",
"sanctuary",
"scosglen",
"shatterhorn",
"skeleton king",
"skeleton lord",
"skovos isles",
"soulstone",
"spiritcaller of frost",
"tchort",
"the beast in the ice",
"the defiler",
"tristram",
"tyrael",
"uznu",
"valtah",
"vampire lord zir",
"varshan the consumed",
"vessel of hatred",
"vhenard",
"wandering death",
"x'fal",
"xiansai",
"zir",
"zultan kule",
# "david brevik",
# "max schaefer",
# "erich schaefer",
# "bill roper",
# "matt uelmen
]
# Check if String Contains Diablo Topics
def contains_diablo_substring(self, string):
string = string.lower()
regex = r'\b(?:{})\b'.format('|'.join(diablo_terms))
match = re.search(regex, string, re.IGNORECASE)
return bool(match)
poe media launchpad: https://pathofexile.media
character showcase: https://startyparty.dev/poe Last edited by desmosthenes2 on Feb 4, 2024, 2:55:56 PM
|
Posted bydesmosthenes2on Feb 4, 2024, 2:55:27 PM
|