[Solved] External EPG loading not working - French channels

SS IPTV App for LG Smart TV discussion
Yasston
Ensign
Ensign
Posts: 10
Joined: 13 Nov 2017, 16:34
TV Model: Sony Bravia
France

Re: External EPG loading not working - French channels

Post 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

User avatar
Eugene
Project Leader
Project Leader
Posts: 5888
Joined: 15 Apr 2013, 22:54
TV Model: LG 47LM960V, LG LB679V
Location: Санкт-Петербург
Been thanked: 1 time
Contact:
Russia

Re: External EPG loading not working - French channels

Post by Eugene »

Currently I do see EPG for your list and with your xmltv

Yasston
Ensign
Ensign
Posts: 10
Joined: 13 Nov 2017, 16:34
TV Model: Sony Bravia
France

Re: External EPG loading not working - French channels

Post 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

User avatar
Eugene
Project Leader
Project Leader
Posts: 5888
Joined: 15 Apr 2013, 22:54
TV Model: LG 47LM960V, LG LB679V
Location: Санкт-Петербург
Been thanked: 1 time
Contact:
Russia

Re: External EPG loading not working - French channels

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

Yasston
Ensign
Ensign
Posts: 10
Joined: 13 Nov 2017, 16:34
TV Model: Sony Bravia
France

Re: External EPG loading not working - French channels

Post 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..."

User avatar
Eugene
Project Leader
Project Leader
Posts: 5888
Joined: 15 Apr 2013, 22:54
TV Model: LG 47LM960V, LG LB679V
Location: Санкт-Петербург
Been thanked: 1 time
Contact:
Russia

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

Post by Eugene »

Actually we've had French EPG but it has disappeared due to technical issues. I think, we'll restore it soon.

cvxcvx
Ensign
Ensign
Posts: 8
Joined: 16 Feb 2017, 21:57
TV Model: F5300
Poland

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

Post by cvxcvx »

And you can not do it to read an external epg in xml format without these header ?

User avatar
Eugene
Project Leader
Project Leader
Posts: 5888
Joined: 15 Apr 2013, 22:54
TV Model: LG 47LM960V, LG LB679V
Location: Санкт-Петербург
Been thanked: 1 time
Contact:
Russia

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

Post by Eugene »

These headers are necessary to provide smooth uploading in background without UI freezing.

cvxcvx
Ensign
Ensign
Posts: 8
Joined: 16 Feb 2017, 21:57
TV Model: F5300
Poland

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

Post by cvxcvx »

@Eugene

Format guide .json is suported from external guide?

Eltontula
Ensign
Ensign
Posts: 2
Joined: 04 Jan 2018, 21:23
TV Model: Smart lg
Albania

Re: External EPG loading not working - French channels

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

Post Reply