daniel-widrick / zap2it-GuideScraping

MIT License
59 stars 20 forks source link

Output all <channel> tags before others? #28

Closed Daniel15 closed 1 year ago

Daniel15 commented 1 year ago

Could you please update your script to output the <channel> tags before all the others such as <programme>, or add an option for it?

When matching M3U playlists to XMLTV EPGs, some IPTV clients stop parsing the XML file as soon as they hit a tag that's not <channel>, to reduce the time it takes to load all the channel data (since they don't need the programme data at this point, only the channel data). For example, TiviMate does this. In the case of your zap2it-GuideScraping script, this means that TiviMate (by default) only shows the first channel in the resulting guide 😢