2016-07-16, 18:23
Recently, my local ISP launched IPTV service, with two week archive feature. It is officially available on PC, over web browser, Tablet and phone, over custom app, and on TV, over 2015 Samsung Smart TV app or special rented IPTV client.
I as tinkerer / hacker, decided to look how web player works, it appears to be using JW player, some Javascript and custom API that returns JSON. It has authentication, but it seems insecure, just a simple HTTP (not HTTPS) POST call, that probably sets cookie, or remembers IP, and allows to use other parts of API.
I managed to get channel addresses from API (which were .m3u8 URLs) and make playlist in VLC for Simple IPTV addon, and it worked, tho doing so completely avoids authentication (what might not be really legal) on playback and lacks features, like channel names, channel images, EPG data, timeshift and archive.
After that success, I wondered if I could make custom addon, based on Simple IPTV addon, that directly authenticates with API and gets channel list, images and EPG data. Unfortunately it ended up in 4 hours wasted on trying to get cmake, and clone of Simple IPTV addon working. So I eventually came to #kodi on Freenode IRC server, from where I got redirected to Kodi Forums (here). So I am mostly how I should clone IPTV Addon and built upon it?
Also I got question, how I should implement archive feature (To find a way to bult on same PVR addon or add another Video addon)?
I as tinkerer / hacker, decided to look how web player works, it appears to be using JW player, some Javascript and custom API that returns JSON. It has authentication, but it seems insecure, just a simple HTTP (not HTTPS) POST call, that probably sets cookie, or remembers IP, and allows to use other parts of API.
I managed to get channel addresses from API (which were .m3u8 URLs) and make playlist in VLC for Simple IPTV addon, and it worked, tho doing so completely avoids authentication (what might not be really legal) on playback and lacks features, like channel names, channel images, EPG data, timeshift and archive.
After that success, I wondered if I could make custom addon, based on Simple IPTV addon, that directly authenticates with API and gets channel list, images and EPG data. Unfortunately it ended up in 4 hours wasted on trying to get cmake, and clone of Simple IPTV addon working. So I eventually came to #kodi on Freenode IRC server, from where I got redirected to Kodi Forums (here). So I am mostly how I should clone IPTV Addon and built upon it?
Also I got question, how I should implement archive feature (To find a way to bult on same PVR addon or add another Video addon)?