Posts: 31
Joined: Feb 2016
Reputation:
0
Hi all,
I don't know if this issue comes from Kodi or Addon. I'm using Kodi Leila
When I select any Channel to watch, Kodi send 2 requests Get, the first one always is closed by Kodi at few milliseconds and send second one, this last keep the connection and I can watch channel
Could you check why do that and fix?
Thanks
Posts: 7,648
Joined: Jun 2011
Reputation:
287
the first request is there to check the mime type of the file
Posts: 7,648
Joined: Jun 2011
Reputation:
287
if the server responds with mime type on a HEAD request, kodi will use this. 2 GETs only happen if the server refuses HEADs.
If you play this through an addons, you can also tell kodi which mime type is expected, so it _should_ only do 1 request.
Posts: 1,840
Joined: Jul 2012
Reputation:
68
This happens with NextPVR too, I though it was three opens. curl reads the head and tail trying to get a duration and find out if the string is seekable. I am not sure it doesn't this is the content-length is not received.
Best bet is to turn on debug logging and component logging for libcurl and post your Kodi log to see what is really going on rather than talking theory.
Martin
Posts: 2,517
Joined: May 2007
Reputation:
118
For iptvsimple it will always do 2 requests unless you provide the mimetype as a KODIPROP or the mime type can be easily inferred from the file extension in the URL.
Posts: 31
Joined: Feb 2016
Reputation:
0
Hi again,
I realized the imagen cover show from EPG view are required by addon requesting 2 Heads and then 1 Get. How can avoid it requests 2 Heads? I only prefer one Head and then 1 Get
Thanks
Posts: 2,517
Joined: May 2007
Reputation:
118
Sorry, I have no idea. I don’t even know what you mean by “imagen cover show”
Posts: 7,648
Joined: Jun 2011
Reputation:
287
out of interest: why is the HEAD request such a big issue for you?