pierre-emmanuelJ / iptv-proxy

Reverse proxy on iptv m3u and m3u8 file and xtream codes client api
GNU General Public License v3.0
535 stars 153 forks source link

Streams are not playing #117

Closed astrooom closed 2 years ago

astrooom commented 2 years ago

Hi!

I'm having an issue where the proxied streams simply aren't playing on any devices. The channels and channel groups show up, but the streams will not play. They report "cannot open URL" or similar errors (depending on which IPTV player I use) instantly when trying to play any channel. Playing directly from the providers m3u link works perfectly (un-proxied).

When looking at the docker logs, all I see is: 2022/03/19 12:47:31 [iptv-proxy] 2022/03/19 - 12:47:31 | 192.168.1.235 | xtream cache m3u file [GIN] 2022/03/19 - 12:47:35 | 200 | 4.783466099s | 192.168.1.235 | GET "/iptv.m3u?username=<MyUsername>&password=<MyPassword>" [GIN] 2022/03/19 - 12:48:18 | 200 | 1.116822497s | 192.168.1.219 | GET "/iptv.m3u?username=<MyUsername>&password=<MyPassword>" So no errors reported. In theory, it should work, right.

I've tried with both HLS and TS, as well as Xtream login (since my provider uses xtream). All of them give the same result.

I've really tried everything. I'm thinking my provider may have some sort of block against proxying their m3u, but then how would they know that it's being proxied?

Thank you for the great work. It's much appreciated. All the best! :D

astrooom commented 2 years ago

UPDATE: It seems channels do play without any issue if a direct link is provided (such as http://192.168.1.73:9092/MyUsername/MyPassword/15553. It does not work when using the whole m3u list, though. Very weird...

astrooom commented 2 years ago

UPDATE AGAIN: I fixed it. I was using "localhost" as HOSTNAME, so obviously it won't work for other devices, as that is what is used in the m3u playlist file for each channel.