daniel-widrick / zap2it-GuideScraping

MIT License
61 stars 22 forks source link

Write all channels before programmes in output XML #29

Closed Daniel15 closed 1 year ago

Daniel15 commented 1 year ago

I was having issues using the output of this script with TiviMate, which an IPTV app for Android TV. As far as I can tell, TiviMate expects all the <channel> tags to be before all the <programme> tags. I can't know for sure (since it's not open-source), but my suspicion is that TiviMate uses a streaming XML parser and stops parsing once it hits a <programme> tag.

I've modified the script to output the <channel>s before the <programme>s. This seems to resolve the issue in TiviMate, as now I see the EPG for all channels.

Closes #28