Those templates aren't meant to be a one for one tool. Their purpose is tutorial in nature. In fact, there are some problems with them as you've seen.
If you continue to use the template, you'll need to dig into the code to correct any problems. Or, you can use the tool in my signature to generate your channel code.
FREE Windows desktop software for converting Direct Publisher channels to SceneGraph (SDK), for creating
BIF (Trick Play) files,
Roku (MRSS, JSON) feed files, and
FireTV feed files @
GitHub/rrirower.