Fix for Empty EPG (until Psyc0n fixes it)

expatter

You betta werk!
Feb 28, 2015
547
22
0
left field
Here's a fix for the blank guide:

open the epg_xmltv.xml file with an editor (like notepad++, etc) and scroll to bottom line and cursor up one line; you will be here:

</programme>
</tv>

Insert a new line between these two lines and add the following: </programme>

It should now look like this:
</programme>
</programme>
</tv>

I know, it seems counter intuitive, but it worked for me!

Save the file
Go to Kodi settings for TV and under guide, clear data (not for TV, just for guide!)

Guide will load up!

Cheers.
 
yep! you right

I also found the same error

here is the sample xmltv file
Code:
http://www.mediafire.com/download/ygrfkdofmaogqsr/guide.zip

open it & goto line 143392 - 143395
Code:
	<programme start="20160516223000 +0000" stop="20160516230000 +0000" channel="I9862.182546083.microsoft.com">
		<title lang="en">News & Magazines</title>
		<category lang="en">News</category>
		<category lang="en">current affairs</category>
  <channel id="Channel 5 HD">

there's no end tag: "</programme>" there
 
where to find that file

If you didn't change the defaults in the ninja epg updater, then it would be in the cache directory. Depends on if you are on android or windows as to where that is or what it is called. But you could look in the file manager and see if you see 'profile' directory and then 'cache' inside of that.
 
hey couch.. any idea how i can add that </programme> tag if it is found missing, automatically.
all in all sometimes the epg source data is screwed,, it will self resolve in aday or two

the simple way is by reading each line of the text file

set the flag=true if found a begin-tag <-- the previous flag must be set false
and set the flag=false if you find an end-tag of the current opened tag


if you find a begin-tag but the prev.flag is true then you have to add the missing end-tag before the line of the begin-tag
 
i made a chnge to the grab, can someone please test

I found these errors:

Code:
Warning: simplexml_load_file(): temp/epg_xmltv.xml:240330: parser error : attributes construct error in php/xml.php on line 28

Warning: simplexml_load_file(): <programme start=""$today" +0000" stop=""$day2" +0000" channel="PPV - Bite.iptvp in php/xml.php on line 28

Warning: simplexml_load_file(): ^ in php/xml.php on line 28
Warning: simplexml_load_file(): temp/epg_xmltv.xml:240330: parser error : Couldn't find end of Start Tag programme line 240330 in php/xml.php on line 28

Warning: simplexml_load_file(): <programme start=""$today" +0000" stop=""$day2" +0000" channel="PPV - Bite.iptvp in php/xml.php on line 28

Warning: simplexml_load_file(): ^ in php/xml.php on line 28

Warning: simplexml_load_file(): temp/epg_xmltv.xml:240335: parser error : Opening and ending tag mismatch: tv line 3 and programme in php/xml.php on line 28

Warning: simplexml_load_file(): </programme> in php/xml.php on line 28

Warning: simplexml_load_file(): ^ in php/xml.php on line 28

Warning: simplexml_load_file(): temp/epg_xmltv.xml:240336: parser error : Extra content at the end of the document in php/xml.php on line 28

Warning: simplexml_load_file(): <programme start=""$today" +0000" stop=""$day2" +0000" channel="PPV - Don't Look in php/xml.php on line 28

Warning: simplexml_load_file(): ^ in php/xml.php on line 28
Error: Cannot create object


and I also found many lines with similar error:

Code:
<programme start=""$today" +0000" stop=""$day2" +0000" channel="PPV - Bite.iptvprivateserver.tv">

maybe you forgot to concatenate the string with your var ($today & $day2) :)


UPDATE

your latest updates (16 minutes ago) is (almost) perfect... no errors found

Screen_Shot_2016_05_16_at_4_07_42_PM.png

but there are still some missing slots for few channels

THANK YOU BOSS!


UPDATE #2
now (almost) all channels' time-slots are filled with EPG data + meta... EXCELLENT !!!
Screen_Shot_2016_05_16_at_9_32_48_PM.png
 
Last edited:
@psycon

I found another bug

some channels in your xmltv file have different "display-name" with the channels' name grabbed from the iptv server

e.g. the name for channel #300 = "HBO East"

but the data in your xmltv file has different names:

Code:
	<channel id="I300.28458145.microsoft.com">
		<display-name>HBO</display-name>
		<display-name>300 HBO</display-name>
		<display-name>300</display-name>
		<display-name>HBO (East)</display-name>
	</channel>


They won't match each other and the pvr-client will report "NO INFORMATION AVAILABLE"


So, you have to add more "display-name" tag-line to synchronize the epg channel

Code:
	<channel id="I300.28458145.microsoft.com">
		<display-name>HBO</display-name>
		<display-name>300 HBO</display-name>
		<display-name>300</display-name>
		<display-name>HBO (East)</display-name>
		<display-name>HBO East</display-name>
	</channel>
 
Greetings everybody. First and foremost, I'd like to thank psycon for all your hard work and dedication. Much appreciate amigo.

I too am having the blank EPG problem and I'm wondering if it's a problem with the backend or my set up.

I'm using
- Kodi 16.1 on Android
- PVR NFPS 1.0.3 (is there any reason why my PVR NFPS client doesn't automatically update?)
- Stalker EPG Updater 1.0.16 (Is this necessary if I'm using PVR NFPS?)

I tried the "</programme>" suggestion to no avail. I noticed psycon stated that the EPG is working with the updated version of PVR NFPS, however when I tried to use 1.0.8, it would crash my Kodi.

Is this a problem with the backend / EPG Updater, or is PVR NFPS 1.0.3 no longer supported, or both or something else? btw, if it matters, I'm using IKS so the server # in PVR NFPS 1.0.8 isn't necessary.


Thanks in advance.

update: Now channels are loading slowly, and some channels get a "Stalker Client NFPS" error. I'm assuming there is maintenance going on? Or is this because I'm using PVR NFPS version 1.0.3?
 
Last edited:
not a bug really.. server just changed the name of the channel. ill fix that chan in the next pull


I found an issue with your latest update (9 hours ago)

there are some channel tag-lines with duplicated id

e.g. <channel id="I300.28458145.microsoft.com">

it has 3 tag-lines with duplicated id @

  • line #3534
  • line #58063
  • line #213715


UPDATE:

nevermind boss :)

I've already injected my own patches into my addon for:
  • channel naming standard
  • tag-line duplicate remover
Screen_Shot_2016_05_17_at_7_58_33_PM.png
 
Last edited: