Removed unused variable, added try except block around adding of episodes to avoid adding corrupt ones