Custom URLs always fetched twice?

I see channels fetching both a m3u8 source URL (Add Source -> Custom Channel -> Source -> URL) and the actual m3u8 URL defined in a Text source twice. My server sees two requests, in the same second -- query1 comes in and is answered in less than a second. Then the same query is sent again and is answered in < 1 second.

for the source URL https://jeremy.kister.net/cgi-bin/yts.mpl?v=8KGXSjtS5pk, there are two requests:

100.11.85.230 - - [03/Jan/2023:00:46:25 -0500] "GET /cgi-bin/yts.mpl?v=8KGXSjtS5pk HTTP/1.1" 200 10601 "-" "Go-http-client/1.1"
100.11.85.230 - - [03/Jan/2023:00:46:25 -0500] "GET /cgi-bin/yts.mpl?v=8KGXSjtS5pk HTTP/1.1" 200 5312 "-" "Go-http-client/1.1"

and in a Text m3u8 I had:

#EXTM3U
#EXTINF:-1 channel-id="test2" channel-number="0.994" tvg-logo="https://i.ibb.co/kHvRksm/cameraicon.png" tvg-name="test2" tvc-guide-title="test2" tvc-guide-description="test2" tvc-guide-placeholders="false",test2
https://jeremy.kister.net/cgi-bin/yts.mpl?w=F109TZt3nRc

the log shows two requests when playing from channels on firetv:

100.11.85.230 - - [03/Jan/2023:00:42:55 -0500] "GET /cgi-bin/yts.mpl?w=F109TZt3nRc HTTP/1.1" 302 7613 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
100.11.85.230 - - [03/Jan/2023:00:42:55 -0500] "GET /cgi-bin/yts.mpl?w=F109TZt3nRc HTTP/1.1" 302 2324 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"

I thought maybe channels was doing some [excessively small] chunked data encoding or range request, but it's not.

Does it use some kind of super-low-timeout for a query and become more forgiving for each successive retry?

1 Like

The first request is made to ensure the URL is valid and happens when you click Save.

The second request is the normal background ingest

1 Like