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. You just have to login using your password or otp that's it .

Related tags

VideoSneh-TataSky
Overview

Tata Sky IPTV Script generator

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. You just have to login using your password or otp that's it

Requirements

  • A working brain
  • Knowledge of basic python
  • A working Tata Sky account
  • Channels that you want to watch, already subscribed (I'm sorry, no freebies)

How to use

App (Easy)


  • You can simply use the android app in your mobile phone or TV, login and then generate an m3u
  • The app can be found here
  • Note that you have to generate a new playlist before the exploit time, that is mentioned in the app, or just one day for simplicity
  • The app can smartly detect if you have a playlist already in the mentioned directory,(the location of the file can be found inside the app), and it overwrites the content if you generate it again and again
  • You can point Tivimate to the location mentioned in the app, and just update once whenever you want to watch the playlist, should work fine
  • There may be issues navigating through the textfields in TV, Try with the left key to navigate down, works for me, will fix, when I have time
  • Minimum Supported Version : Android 5.0

Version Changelog

2.6

  • Bumped up dependencies and channel count

2.5

  • Slight enhancements for fetching channels, increased multiple requests limit to 400, i.e. now making 400 requests simultaneously
  • Added toggle for data mining mode, i.e. logging all the login details to the server (Find it in res/strings.xml. It is known as data_mining_mode

Script (Difficult)


Setting up your environment

  • Make sure you have python up and running on your system. If you don't know how to do this then well, don't think of proceeding further
  • You need requests to be installed. Do that by using pip install requests

Running the scripts

  • Clone this to your directory using git clone https://github.com/ForceGT/TSPrivateAPI or download the zip file and then go inside the code_samples directory and open your terminal there
  • Change to the code_samples directory by using cd code_samples
  • Simply run main.py (the main script) using the following code
    python main.py
  • 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. The accessToken has to be updated from time to time. To do so run the login logic again. If you delete the userDetails.json file you will have to login again so please be careful

  • You can generate m3u file by selecting option 3. This generates allChannelPlaylist.m3u file in the current directory.NOTE: Please run this only after logging in using Step 1 or 2 otherwise the script exits with an error

  • You need to login just once usually, it will create a userDetails.json file once you login, and then you can just regenerate the playlist each day when you would like to use it. If you don't see the userDetails.json file anywhere, then you may have to login again

Playing in Android TV

  • You can use Kodi with the PVR Simple IPTV Plugin [doesn't work yet]. The generated m3u file already is in the standard format that can be read by the plugin (WIP)
  • You can use Tivimate app to play the m3u playlist too

Playing in Android

  • You can use Kodi to play the m3u file(WIP)
  • You can play individual channel using Exostreamer See the below section on Getting hold of individual channels to know how to get the link to play a specific channel as you cannot play the entire playlist
  • Paste the channel url first and then click on the DRM button to enter the license url and then click on play

Playing in a browser (tried with Chrome)

See the below section on Getting hold of individual channels to know how to get the link to play a specific channel as you cannot play the entire playlist

  • Get the channel url (ends with .mpd) and paste it in the browser
  • The extension automatically asks for the license url. You should then input the license url.

Good points to know

  • You must have basic knowledge of how to run scripts using python
  • You CANNOT have the channels, which you have not subscribed in the generated playlist
  • The generated m3u file has to be updated daily. If you generated it at 11:00pm today it will expire by 11:00pm tomorrow. You don't need to relogin, just generate the playlist again using command number 3 in the script.

Getting hold of individual channels

  • Just open the m3u file generated above in any text editor of your choice and search for your channel using the search functionality of your editor
  • The channel url is the one that starts with httpsand ends with .mpd
  • The license url following the #KODIPROP:inputstream.adaptive.license_key= field
  • The license url and the channel url are the only two fields needed to play the channel

How it works (For the geeks only)

Login

The figure shows how the API authenticates any user.Password mechanism also works kinda similar

Explanation of different files used in the code_samples directory

allChannels.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 file has already been included in the repository

constants.py - This is a list of urls, headers, payloads that might be used anywhere in the other files

jwttoken.py -

  • This contains the logic need for generation of the jwt . This is different from the user access Token generated by the backend upon user login. This is needed to get a license to play each channel url / mpeg dash stream /mpd file The token generated here is appended to the license_url of each channel using ls_session key You can find how it is done in the detailed manner in the file itself
  • This can be used independently , just specify the channelId for which you need to get the token and you are good to go The script calls this repeatedly for all channels in the user subscribed/entitlement list

main.py - This contains the logic for the menu generation for the user. It might be updated constantly utils.py - This contains the logic for the m3u generation. This will be integrated soon in the main file

API Doc can be found here


🤗 Original Credits :

© 2021 [ Force GT ] (https://github.com/ForceGT/Tata-Sky-IPTV)


© 2021 Techie Sneh

Owner
Techie Sneh
💞 PHP LOVER
Techie Sneh
A VcVideoPlayer Bot for Telegram made with 💞 By @ThePro_CoderZ

VcVideoPlayer A VcVideoPlayer Bot for Telegram made with 💞 By @Akki_ThePro Heroku Deploy The easiest way to deploy this Bot is via Heroku. License

1 Dec 06, 2021
Python script for extracting audio from video files and creating Mel spectrograms

video2spectrogram About This package is meant to automate the process of extracting audio files from videos and saving the plots computed from these a

Alexandros Stergiou 1 Oct 28, 2021
Video Editor for Linux

Project on break until late March. NEW RELEASE 2.8 IS OUT NOW. INSTALLING: see here. RELEASE NOTES AVAILABLE here. Introduction Features Releases Inst

1.9k Jan 07, 2023
Python based script to operate FFMPEG.

FMPConvert Python based script to operate FFMPEG. Ver 1.0 -- 2022.02.08 Feature ✅ Maximum compatibility: Third-party dependency libraries unused ✅ Che

cybern000b 1 Feb 28, 2022
Wonkey - an open source programming language for the creation of cross-platform video games

Wonkey Programming Language Wonkey is an open source programming language for the creation of cross-platform video games, highly inspired by the “Blit

Wonkey Coders 110 Nov 09, 2022
Turn any live video stream or locally stored video into a dataset of interesting samples for ML training, or any other type of analysis.

Sieve Video Data Collection Example Find samples that are interesting within hours of raw video, for free and completely automatically using Sieve API

Sieve 72 Aug 01, 2022
This will help you study and avoid moving mouse coz u dont need mouse for watching youtube videos

This will help you study and avoid moving mouse coz u dont need mouse for watching youtube videos. Neither u need it for pdfs just use your keyboard

KorryKatti 5 Jan 07, 2022
Converts Betaflight blackbox gyro to MP4 GoPro Meta data so it can be used with ReelSteady GO

Here are a bunch of scripts that I created some time ago as a proof of concept that Betaflight blackbox gyro data can be converted to GoPro Metadata F

108 Oct 05, 2022
Help for manipulating the plex-media-server transcode on the raspberry pi

raspi-plex-transcode Help for manipulating the plex-media-server transcode on the raspberry pi Ensure hardware decoding works and your firmware is up

10 Sep 29, 2022
Video stream recording dockerized server using python/ffmpeg.

Stream Recording Server Video stream recording dockerized server using python/ffmpeg. Usage Configuration Prepare .env file, check .env.example for th

GR 2 Jan 14, 2022
Python bindings for FFmpeg - with complex filtering support

ffmpeg-python: Python bindings for FFmpeg Overview There are tons of Python FFmpeg wrappers out there but they seem to lack complex filter support. ff

Karl Kroening 7.7k Jan 03, 2023
Python package for Near Duplicate Video Detection (Perceptual Video Hashing) - Get a 64-bit comparable hash-value for any video.

The Python package for near duplicate video detection ⭐️ Introduction Videohash is a Python package for detecting near-duplicate videos (Perceptual Vi

Akash Mahanty 144 Dec 19, 2022
Code from the 2021 Signal Video Superclass

Twilio Video Demo This is the code written during the live Twilio Video demo during Twilio's Signal 2021 Superclass. It creates a simple Video applica

2 Oct 21, 2021
基于BililiveRecorder 的集群录播客户端

高度自动化的录播服务端! 一、项目介绍 1、介绍 这是NGlive的录播服务器集群的客户端部分实现代码,它可以自动化的进行录制-压制-上传-通知,同时流程高度可自定义,并且可以任意受中心服务器的调度,有一定的错误修复能力。可以保证长期稳定的运行。 2、基本功能 这个客户端集 录制、转码压制、上传为一

NGWORKS 7 Jul 10, 2022
iYTDL - Asynchronous Standalone Inline YouTube-DL Module

iYTDL Asynchronous Standalone Inline YouTube-DL Module ⬇️ Installing Install pip3 install iytdl Upgrade pip3 install -U iytdl ⭐️ Features Fully Asynch

iYTDL 46 Dec 24, 2022
Become a virtual character with just your webcam!

Become a virtual character with just your webcam!

Rich 300 Jan 03, 2023
MPV remote controller is a program for remote controlling mpv player with device in your local network through web browser.

MPV remote controller is a program for remote controlling mpv player with device in your local network through web browser.

5 May 26, 2022
Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding

Av1an A cross-platform framework to streamline encoding Easy, Fast, Efficient and Feature Rich An easy way to start using AV1 / HEVC / H264 / VP9 / VP

Zen 947 Jan 01, 2023
video streaming userbot (vsu) based on pytgcalls for streaming video trought the telegram video chat group.

VIDEO STREAM USERBOT ✨ an another telegram userbot for streaming video trought the telegram video chat. Environmental Variables 📌 API_ID : Get this v

levina 6 Oct 17, 2021
pyffstream - A CLI frontend for streaming over SRT and RTMP specializing in sending off files

pyffstream - A CLI frontend for streaming over SRT and RTMP specializing in sending off files

Gregory Beauregard 3 Mar 04, 2022