sonroyaalmerol / m3u-stream-merger-proxy

A lightweight HTTP proxy server dockerized for consolidating and streaming content from multiple IPTV M3U playlists, acting as a load balancer between provided sources.
https://hub.docker.com/r/sonroyaalmerol/m3u-stream-merger-proxy
30 stars 3 forks source link

hostname disappears from playlist URL #176

Closed juhacz closed 1 hour ago

juhacz commented 6 hours ago

Something is wrong with the program, I install it in docker. I add a playlist with addresses (only one, for testing):

#EXTM3U
#EXTINF:-1,13 Ulica
#EXTTV:hd,sd;pl;13Ulica.pl
#EXTLOGO:https://i.imgur.com/0gCNnLq.png
http://192.168.100.130:6878/ace/manifest.m3u8?infohash=xxx2d328d2e5a8a83f04bd6f3da38bf48a37e375&pid=92798
#EXTINF:-1,Active Family #EXTTV:hd,sd;pl;ActiveFamily.pl #EXTLOGO:https://i.imgur.com/I1wdWAo.png http://192.168.100.130:6878/ace/manifest.m3u8?infohash=xxx736151ca3f489d2fcfd33efd2d075fdbce499&pid =97428189 #EXTINF:-1,Adv enture
#EXTTV:hd,sd;pl;AdventureTV.pl
#EXTLOGO:https://i.imgur.com/VQVr4Nk.png
http://192.168.100.130:6878/ace/manifest.m3u8?infohash=xxxb8bfe16ebac9b6c797aa577fddde1165a511c&pid=11546175

Next I go in browser to the page: http://192.168.100.130:8080/playlist.m3u and I see the generated playlist:

#EXTM3U
#EXTINF:-1 tvg-name="13 Ulica" group-title="",13 Ulica
http://192.168.100.130:8080/proxy/ace/13-ulica.m3u8
#EXTINF:-1 tvg-name="Active Family" group-title="",Active Family
http://192.168.100.130:8080/proxy/ace/active-family.m3u8
#EXTINF:-1 tvg-name="Adventure" group-title="",Adventure
http://192.168.100.130:8080/proxy/ace/adventure.m3u8

I click F5 (refresh) in the browser, everything is ok, I click F5 again, it is ok, I click F5 again and I see the playlist:

EXTM3U
#EXTINF:-1 tvg-name="13 Ulica" group-title="",13 Ulica
/proxy/ace/13-ulica.m3u8
#EXTINF:-1 tvg-name="Active Family" group-title="",Active Family
/proxy/ace/active-family.m3u8
#EXTINF:-1 tvg-name="Adventure" group-title="",Adventure
/proxy/ace/adventure.m3u8

the host disappears from the stream addresses. I checked version 0.15.2, I checked an older one about 3 weeks ago and it's the same.

If I restart the container, open the playlist in the browser, I see the correct playlist again until I refresh the list three times, then the hosts disappear.

kp-emagine commented 4 hours ago

@juhacz In your docker compose... did you set: BASE_URL ?

juhacz commented 4 hours ago

Indeed, after adding this parameter it works. I didn't dig into the documentation because I was confused by the fact that the problem occurs after some refresh.

sonroyaalmerol commented 1 hour ago

Yes, as you might have already discovered, setting BASE_URL is required if you have CACHE_ON_SYNC set to true. I'm closing this as resolved.