Original: They discovered Yan, who, at that time, was really popular online, and thus recommended him to audition for a role in a drama.
Simplified: They discovered him, who at that time, was popular online, and thus recommended him to go casting for a role in a TV show.