add-ons / service.iptv.manager

Integrate TV and radio channels with EPG data from other add-ons in Kodi PVR.
https://github.com/add-ons/service.iptv.manager/wiki
GNU General Public License v3.0
95 stars 28 forks source link

EPG thread never finishes #23

Closed dagwieers closed 3 years ago

dagwieers commented 4 years ago

I noticed now a few times that when loading the EPG data, IPTV Simple Client never finishes when the Yelo EPG data is being collected. (This is after I modified IPTV Manager to have a timeout of 30 seconds)

Normally you expect this:

2020-05-26 00:32:42.576 T:1790935936  NOTICE: AddOnLog: PVR IPTV Simple Client: LoadPlayList PlayList Loaded - 13 (ms)
2020-05-26 00:32:42.576 T:1790935936  NOTICE: AddOnLog: PVR IPTV Simple Client: Loaded 51 channels.
2020-05-26 00:32:42.577 T:1790935936  NOTICE: PVR Manager: Starting
2020-05-26 00:32:43.021 T:1586578304  NOTICE: PVR Manager: Started
2020-05-26 00:32:43.024 T:1807721344  NOTICE: EPG thread started
2020-05-26 00:32:44.166 T:1524540288  NOTICE: AddOnLog: PVR IPTV Simple Client: LoadEPG EPG Loaded - 141 (ms)

But we get this:

2020-05-26 03:11:42.697 T:912257920  NOTICE: AddOnLog: PVR IPTV Simple Client: LoadPlayList PlayList Loaded - 9 (ms)
2020-05-26 03:11:42.697 T:912257920  NOTICE: AddOnLog: PVR IPTV Simple Client: Loaded 122 channels.
2020-05-26 03:11:42.697 T:912257920  NOTICE: PVR Manager: Starting
2020-05-26 03:11:42.727 T:1249899392  NOTICE: PVR Manager: Started
2020-05-26 03:11:42.729 T:912257920  NOTICE: EPG thread started

And it never reports the EPG is loaded. Consequently, no EPG is shown in Kodi.

epg.xml playlist.m3u8

cc @phunkyfish

dagwieers commented 4 years ago

Alright, this was caused by a bug in the Yelo add-on returning datetime objects without timezone information causing the timestamp to end with a whitespace and no offset.

This is now fixed in add-ons/plugin.video.yelo#13

dagwieers commented 4 years ago

I think this should still be fixed in pvr.iptvsimple as well. Now it stops processing everything because of an error in the date/time fields, whereas it could skip the faulty entries, report the failures and continue processing. Which would make it more resilient and more dependable by IPTV Manager.

dagwieers commented 4 years ago

I have another occurrence of the EPG thread not finishing successfully. epg.xml

This new EPG failure is related to the VRT NU add-on.

michaelarnauts commented 4 years ago

It's possible that this is already fixed in the Matrix branch of PVR.iptvsimple. The code of Leia and Matrix has changed quite a lot.

phunkyfish commented 4 years ago

Yes, please test first in Matrix.

dagwieers commented 3 years ago

I am going to close this. I don't have a Matrix setup at home.

If anyone is interested, the information is in here to try and reproduce it in Matrix. I know it fails on Leia but there is no interest in Leia.

dagwieers commented 3 years ago

I am seeing the same thing again with RedBullTV now.

2020-10-29 02:11:44.421 T:879752064  NOTICE: EPG thread started

It never finishes, probably a parsing issue again.

Update: Yes, it is also missing the timezone information.

cc: @piejanssens