#-------------------------------------------------------------------------------------- #GENRES genresFile = open( PATH + GENRE_FILE ) regex = re.compile(titleRegex + weirdShitRegex + splitRegex + '(.*)') for line in genresFile: matches = regex.match(line) if(matches and matches.group(1) and not matches.group(2) and not matches.group(3)): try: if(matches.group(1) in titles): s.addGenre(matches.group(1), matches.group(4)) #print matches.group(4) + " IS GENRE OF " + matches.group(1) except: continue # print matches.group(1) + " ::: " + matches.group(4) #-------------------------------------------------------------------------------------- #LOCATIONS locationsFile = open( PATH + LOCATION_FILE ) regex = re.compile(titleRegex + weirdShitRegex + splitRegex +