Refactoring the parsing of tv content