https://www.dailymotion.com/video/x3jao3v
https://en.wikipedia.org/wiki/I,_Mudd
"I, Mudd" is the eighth episode of the second season of the American science fiction television series Star Trek. Written by Stephen Kandel (based on a story by Gene Roddenberry) and directed by Marc Daniels, it was first broadcast on November 3, 1967. David Gerrold performed an uncredited rewrite, but little of his material was used.[1]
The crew of the Enterpise has a second encounter with the conman Harry Mudd (Roger C. Carmel), first seen in the Season One episode "Mudd's Women". Mudd is now the supreme ruler of a planet of androids who cater to his every whim.