I barely remember a TV show I saw as a kid (mid-late 1970's or early 1980's). I've tried to search but I can't find. It was in Spanish TV (TVE) but I'm sure that was not produced in Spain.
It was about a group of people that travel through time to the past trying to identify an evil character mingled with other people of the time. The crew had to identify what person is evil and do something (I don't remember what they had to do). At the end of the episode, when they are going to capture this evil person, this person escape to another time.