DEFENDORe / pseudotv

Create live TV channels from your own media. Access the streams using the simulated HDHomerun tuner or the generated M3U URl.
MIT License
234 stars 36 forks source link

xmltv.xml File is empty #87

Closed pedwards3x closed 4 years ago

pedwards3x commented 4 years ago

I have this up and running on my Plex server and everything is working well, except the xmltv.xml file only contains the following after it is updated:

<?

There are no issues writing to the file, and the stream will work, but the guide in Plex is not working due to no data being created in the xmltv.xml file. Any advice?

vexorian commented 4 years ago

This sounds really strange, what version are you using? Do you have really big channels? What's the size of your channels.json ?

pedwards3x commented 4 years ago

I just cloned the default branch 4 days ago. Channel size does not seem to matter, I have tried creating a large channel and a small channel with 5 episodes of a show on it, same result. I just looked and channels.json is 14K in size.

2020-07-27 13_39_05-maverick@mavplex_ ~_pseudotv_ pseudotv
mchal commented 4 years ago

src/xmltv.js Line 35 - should be ws.end(); and not ws.close();

https://github.com/DEFENDORe/pseudotv/blob/becb8bc176a98654f153d327f00f58312ea4e427/src/xmltv.js#L35

vexorian commented 4 years ago

cool find. This should explain many random xmltv issues

pedwards3x commented 4 years ago

Yup, this fixed everything for me. Thanks!