kvaster / iptv-proxy

Simple iptv restreamer
Other
97 stars 22 forks source link

Question on use #8

Open adrianmihalko opened 2 years ago

adrianmihalko commented 2 years ago

My situation: provider allows only 1client/1stream and I have 1 playlist only, which is not problem, but I want to share these streams to 3 more TV in my house:

Screenshot 2022-01-17 at 19 15 37

I would like to achieve that if any of subclient or mainclient is watching others should be blocked from connecting (first come first serve). This way provider always see one connection/request and I am not breaking the rules.

In an advanced scenario I could imagine to stream to other clients a video with message "stream in use, try later" while the connection is busy.

Is this possible with this software?

kvaster commented 2 years ago

Currently iptv-proxy doesn't support this mode. It's on the TODO list. But generally this feature is not so usefull, cause different iptv clients may behave in different ways. Kodi's iptv.simple may fallback from live tv to 'catchup' stream and it will be hard to implement such logic.

adrianmihalko commented 2 years ago

Thanks. I installed the proxy, it works, but there are some questions.

My biggest problem is that the order of the channels are not the same as with my original m3u playlist (I am editing with m3u4u.com and using groups as folder and editing channel ordering manually). In apps they are now sorted by name A-Z. With original.m3u I have same order as I did on m3u4u.com:

Original:

EXTM3U url-tvg=""

EXTINF:-1 tvg-id="BBCOne.uk" tvg-name="BBC One" tvg-logo="s17153_dark_360w_270h.png" group-title="English",BBC One

http://localhost/1114.ts

EXTINF:-1 tvg-id="BBCOne.uk" tvg-name="BBC One HD" tvg-logo="s17153_dark_360w_270h.png" group-title="English",BBC One HD

http://localhost/1158.ts

Proxy:

#EXTM3U
#EXTINF:0 tvg-id="362a9c117419082290546b99778c52b1" tvg-logo="s17153_dark_360w_270h.png",BBC One
#EXTGRP:English
http://192.168.1.155:9980/.../channel.m3u8?t=1643154416559-eb4f634...
#EXTINF:0 tvg-id="eab4f1909b0a99b616e771e9ee02c537" tvg-logo="s24353_dark_360w_270h.png",BBC One East Midland
#EXTGRP:English
http://192.168.1.155:9980/.../channel.m3u8?t=1643154416559-eb4f634...
#EXTINF:0 tvg-id="eab4f1909b0a99b616e771e9ee02c537" tvg-logo="s24353_dark_360w_270h.png",BBC One East Midlands
#EXTGRP:English
http://192.168.1.155:9980/.../channel.m3u8?t=1643154416559-eb4f634...
#EXTINF:0 tvg-id="362a9c117419082290546b99778c52b1" tvg-logo="s17153_dark_360w_270h.png",BBC One HD

Second problem is that I see a lot less channels with iptv-proxy:

Screenshot 2022-01-26 at 01 14 04@2x

I see no error in the log. Maybe there are duplicates and proxy is trying to remove them (it should not by default)?

kvaster commented 2 years ago
  1. Ordering is not preserved for now - I will add option to preserve ordering.
  2. Can you please send your m3u playlist (please remove any sensitive information like passwords from it) ?
adrianmihalko commented 2 years ago
  1. That would be really great.
  2. Here you go.
kvaster commented 2 years ago

The problem is with channels identification. i.e.:

#EXTINF:-1 tvg-id="CartoonNetwork.uk" tvg-name="CartoonNetwork" tvg-logo="http://schedulesdirect-api20141201-logos.s3.amazonaws.com/stationLogos/s78843_dark_360w_270h.png" group-title="English",CartoonNetwork
#EXTINF:-1 tvg-id="CartoonNetwork.uk" tvg-name="CartoonNetwork" tvg-logo="http://schedulesdirect-api20141201-logos.s3.amazonaws.com/stationLogos/s78843_dark_360w_270h.png" group-title="English",CartoonNetwork

Playlist contains channels with same names and ids and there is no proper way to combine channels in such case...