import re


def _normalize_show_name(name):
	"""
	Normalize a title for string comparison. Ignores all non-ASCII letter or digit symbols.
	Also removes "Season X" substrings and converts to lowercase.
	"""
	name = name.casefold()
	name = re.sub("[^a-z0-9]", " ", name)
	name = re.sub("season \d( part \d)?", " ", name)
	name = re.sub("\s+", " ", name)
	return name