santomet / sktv-forwarders

Fork of the original sktv-forwarders by @NezbednikSK.
https://santovic-test.6f.sk/sktv-forwarders/
GNU Affero General Public License v3.0
1 stars 2 forks source link

Remove dead channels together with code #8

Closed santomet closed 3 months ago

santomet commented 3 months ago

Apart from CNN Portugal, nothing worked for me. Maybe some geoblocking somewhere? Therefore, I removed all the code. Also, now all dead channels are redirected to our video_unavailable playlist.

Any comments? Does anyone have plans to maintain outside Czechoslovakia?

NexusSfan commented 3 months ago

Don't break playlists. Redirect non-working channels to unavailable.m3u8 using a Permanently Moved HTTP code.

santomet commented 3 months ago

Can you please provide a little more explanation as to why is this needed? The fact that some channel is dead, does not mean that it will be so forever 100%. Maybe I do not know enough about playlist bots, so please elaborate.

NexusSfan commented 3 months ago

Can you please provide a little more explanation as to why is this needed? The fact that some channel is dead, does not mean that it will be so forever 100%.

Then use HTTP Code "302 Found"

Maybe I do not know enough about playlist bots, so please elaborate.

If a playlist contains a dead m3u8 file without an error message (or even a 404) then its like connecting to a website and getting HTTP Code 200 every time, no matter what.

It's more of a debugging feature, so it's kind of optional?

santomet commented 3 months ago

Well, I still think it is unnecessary and potentially misleading. 301 has its meaning and it is actually different from our issue. Nothing moved permanently - it is just dead and we provide information for the user in the video, because video players do not care about status codes too much. 404 would have closer meaning but it is not compatible with redirecting (the header is overridden by 302 by default if you attempt to redirect)

However, OK. The only real use it could have hypothetically is that some bots might be able to filter out "permanently moved" links... If the bot knows what that means.