Page 2 of 3

Re: External EPG loading not working - French channels

Posted: 22 Dec 2017, 14:13
by Yasston
Hello,

I made modifications to nginx to respond OK to OPTIONS requests, but I still don't see my EPG information.
This is how I tested : I had 405 response before :
Image

And now :
Image

I have one question : Is the OPTIONS request made for the exact URL of the file, or does your app try to reach another path ? Because my http server is not configured to answer a parent path for example... Anyway, if you only make requests for the exact URL (http://myserver/test_guide.xml), you should now have HTTP OK Response to GET, POST, or OPTIONS requests.

What do you think ? What should be the next step ?

Thank you

Re: External EPG loading not working - French channels

Posted: 22 Dec 2017, 14:26
by Eugene
Currently I do see EPG for your list and with your xmltv

Re: External EPG loading not working - French channels

Posted: 22 Dec 2017, 15:28
by Yasston
Well, that is so weird ! I am becoming crazy over this.... I don't know what to tell you, it still doesn't work. Here are all relevant photos, maybe there is something else wrong that I do not see. The only EPG information is for "Arte", it is in German and I believe is coming from your side :

Image

Image

Image

Image

Image

I am really sorry, and thank you again for your time helping me with this

Re: External EPG loading not working - French channels

Posted: 22 Dec 2017, 15:42
by Eugene
You have pretty large xlmtv file - about 2,5 Mb. It takes some time for uploading and parsing it even in Chrome browser on my PC. Your TV has much less resources so I suppose you just need to wait for a while till EPG appears. About one minute or probably little bit more.

Re: External EPG loading not working - French channels

Posted: 22 Dec 2017, 16:24
by Yasston
Oh man... That was it !!! :hi: :hi: :yahoo:

I made a very small xmltv for only 5 channels and it loaded immediately. On the original file, even if I waited 4-5 minutes, I couldn't see anything ! And the worse part is that I considered it to be a small xmltv file, it contained information for only 1 day ! Those SONY TVs must be really low end on the "Smart TV" side...

Thank you again for all your time, I made this small summary for other people having the same problem, maybe you could add it to your page http://ss-iptv.com/en/operators/epg

"If you are using Nginx as the HTTP server hosting your xmltv file, you must manually configure it to respond to HTTP OPTIONS requests, as it does not natively do so. You can use something like this in the conf file, inside a location or server block :

Code: Select all

if ($request_method = OPTIONS ) {
    add_header 'Access-Control-Allow-Origin' '*';
    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, HEAD';
    add_header 'Access-Control-Allow-Headers' 'Range';
    add_header 'Access-Control-Expose-Headers' 'Accept-Ranges, Content-Encoding, Content-Length, Content-Range';
    add_header Content-Type text/xml;
    return 200;
}

Test with curl to make sure you have an http OK response :

Code: Select all

curl -I -X OPTIONS http://yourserver.smthg/your_epg_file.xml

Also, if you don't immediately see the EPG information, please wait a little as it may take some time to appear. If it takes too long for your taste, consider shrinking the xmltv file by removing unused tags or channels..."

Re: [Solved] External EPG loading not working - French channels

Posted: 22 Dec 2017, 17:41
by Eugene
Actually we've had French EPG but it has disappeared due to technical issues. I think, we'll restore it soon.

Re: [Solved] External EPG loading not working - French channels

Posted: 23 Dec 2017, 12:10
by cvxcvx
And you can not do it to read an external epg in xml format without these header ?

Re: [Solved] External EPG loading not working - French channels

Posted: 23 Dec 2017, 14:36
by Eugene
These headers are necessary to provide smooth uploading in background without UI freezing.

Re: [Solved] External EPG loading not working - French channels

Posted: 05 Jan 2018, 10:55
by cvxcvx
@Eugene

Format guide .json is suported from external guide?

Re: External EPG loading not working - French channels

Posted: 05 Jan 2018, 12:56
by Eltontula
Eugene wrote:Ok, let's check real EPG link. I'm absolutely sure that everything must work if server is configured properly.

Hi Eugene can you tell me why i have problem with buffering please?