![itpv script itpv script](https://iptvfree.vip/vf/assets/images/4-592x242.jpg)
NOTE: Please run this only after logging in using Step 1 or 2 otherwise the script exits with an error This generates allChannelPlaylist.m3u file in the current directory You can generate m3u file by selecting option 3. If you delete the userDetails.json file you will have to login again so please be careful The accessToken has to be updated from time to time. You will get options to login using the different methods, upon successful login a userDetails.json file is created which contains important details of the user.
Itpv script code#
Itpv script install#
Get all the needed requirements for the script from the requirements.txt file using pip install -r requirements.txt.Change to the code_samples directory by using cd code_samples.Clone this to your directory using git clone.Figure out easy way to solve the issue of playlist need to be updated daily.Add Support for Kodi 19.0 ( See #1 for more info).This will be integrated soon in the main file Utils.py - This contains the logic for the m3u generation. Main.py - This contains the logic for the menu generation for the user. The script calls this repeatedly for all channels in the user subscribed/entitlement list This can be used independently, just specify the channelId for which you need to get the token and you are good to go.You can find how it is done in the detailed manner in the file itself The token generated here is appended to the license_url of each channel using ls_session key This is needed to get a license to play each channel url / mpeg dash stream /mpd file This is different from the user access Token generated by the backend upon user login. This contains the logic need for generation of the jwt.The file has already been included in the repositoryĬonstants.py - This is a list of urls, headers, payloads that might be used anywhere in the other files Password mechanism also works kinda similar Explanation of different files used in the code_samples directoryĪllChannels.py - This generates a file allChannels.json containing all the channels available on the TataSky platform irrespective of whether the user has subscribed or not. The figure shows how the API authenticates any user A script to generate the m3u playlist containing direct streamable file (.mpd or MPEG-DASH or DASH) based on the channels that the user has subscribed on the Tata Sky portal.