PDA

View Full Version : Fix for Empty EPG (until Psyc0n fixes it)



expatter
05-15-2016, 03:43 AM
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.

couch potato
05-15-2016, 04:01 AM
yep! you right

I also found the same error

here is the sample xmltv file

http://www.mediafire.com/download/ygrfkdofmaogqsr/guide.zip

open it & goto line 143392 - 143395


<programme start="20160516223000 +0000" stop="20160516230000 +0000" channel="I9862.182546083.microsoft.com">
<title lang="en">News &amp; 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

ixm00m
05-15-2016, 03:56 PM
This is not working for me. still unable to parse the file

dotsadie
05-15-2016, 04:14 PM
Where do i find (epg_xmltv.xml) file when using stalker client?

advocate2
05-15-2016, 05:14 PM
I tried the fix on my Windows laptop and no go getting the guide. The epg_xmltv.xml file is not to be found on my FireTV running Kodi.

Bkman2020
05-15-2016, 05:49 PM
Provider has issues with epg please wait till its fixed thanks

godassassin
05-15-2016, 07:41 PM
first time didnt work rebooted and tried again it worked

fonz1234
05-16-2016, 02:08 AM
where to find that file

expatter
05-16-2016, 03:10 AM
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.

psycon
05-16-2016, 04:18 AM
not much i can do for now other than disable the badd channels.
odd thing is is i am not having this issue with the latest pvr.stalker.nfps

psycon
05-16-2016, 04:22 AM
i made a chnge to the grab, can someone please test

psycon
05-16-2016, 04:32 AM
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

couch potato
05-16-2016, 05:21 AM
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

couch potato
05-16-2016, 05:26 AM
i made a chnge to the grab, can someone please test

I found these errors:


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:


<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

http://s32.postimg.org/k1g93k9ed/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 !!!
http://s32.postimg.org/578q3jf9x/Screen_Shot_2016_05_16_at_9_32_48_PM.png

couch potato
05-16-2016, 03:53 PM
@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:


<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


<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>

psycon
05-16-2016, 03:56 PM
not a bug really.. server just changed the name of the channel. ill fix that chan in the next pull

Jmalibu
05-16-2016, 09:20 PM
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?

chadome
05-17-2016, 01:42 AM
Provider has issues with epg please wait till its fixed thanks

Is the provider still having issues?

couch potato
05-17-2016, 08:18 AM
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

http://s32.postimg.org/6uf7prqhh/Screen_Shot_2016_05_17_at_7_58_33_PM.png