channels_url = f"portal/stalker_portal/server/load.php?type=stb&action=get_all_channels&token=token" channels = session.get(channels_url).json()
portal/playlist/channel/channel_id?token=token It writes a standard M3U file:
#EXTM3U #EXTINF:-1 tvg-id="channel_id" tvg-name="Channel Name",Channel Name http://portal:8080/playlist/channel/123?token=abc123 If the portal supports it, the tool provides the XMLTV EPG URL:
This allows users to use their existing IPTV subscription on any third-party player (e.g., VLC, TiviMate, Perfect Player, Kodi) without being locked to the proprietary MyTVOnline interface. MyTVOnline devices use MAC address authentication with a portal server. The connection is typically:
portal/stalker_portal/server/load.php?type=stb&action=get_profile&mac=mac&token=token Calls the get_all_channels endpoint to retrieve channel objects (ID, name, stream URL template). Step 5 – Generate M3U For each channel, the tool constructs the actual stream URL using the pattern:
http://portal.example.com:8080/c/ Credentials are tied to a device’s (e.g., 00:1A:79:XX:XX:XX ). The server responds with a token and streams are delivered through a Stalker portal.
m3u_lines = ["#EXTM3U"] for ch in channels['js']: name = ch['name'] ch_id = ch['id'] stream_url = f"portal/playlist/channel/ch_id?token=token" m3u_lines.append(f'#EXTINF:-1,name\nstream_url')