2020-11-14, 23:31
if a head request costs too much server resources, kodi is probably not the right media player for you.
(2020-11-15, 01:05)emveepee Wrote: Who defined how many HEAD requests are proper? Some servers don't even support 1. If you feel it is incorrect I suggest submitting a PR with supporting rationale.
Martin
(2020-11-15, 03:13)emveepee Wrote: No. I could think of scenarios where as a developer I might want to get the content-type and the content-length in two different calls. Another example might be to determine if the file is growing and the server doesn't support content-ranges.
Relative to video streaming this call is insignificant.
Martin
(2020-11-05, 21:58)phunkyfish Wrote: 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.Are you sure about your statement with the file extension in the URL? My URL's look like this:
h__p://127.0.0.1:8096/emby/VirtualTV/Stream.ts?ChannelId=441160
INFO <general>: AddOnLog: inputstream.ffmpegdirect: Stream mimetype: application/octet-stream
(2020-12-14, 01:53)emveepee Wrote: ... so I suspect it is just the nature of what the server is replying and what curl and ffmpeg are expecting.ffmpeg only needs the mimetype, because it's enough to put the mimetype as a KODIPROP in the channel playlist to then only create one GET request without any previous HEAD request.