Git Product home page Git Product logo

tata-sky-iptv's Introduction

Tata Sky/ Play 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.

NOTE: Low maintainance, PRs will be accepted

GitHub forks GitHub stars made-with-python MIT license

Migration notice

This repository is now maintained via Github Actions only, and I don't personally maintain it. It initially began as a proof of concept code for being able to generate an m3u from Tata Play servers. It was not very user friendly, as it was just done for curiosity. Shravan has rendered my research into a very user friendly method of generation, which you can take a look here. Saif has also done a brilliant job here. However, if you've come here and are reading this, kindly star the repository and go to any one of these

Requirements

  • A working brain
  • Knowledge of basic python
  • A working Tata Sky/ Play account
  • Channels that you want to watch, already subscribed (I'm sorry, no freebies)
  • An app capable of reading a m3u file

How to use

I know you would love to get your hands on how this works, but hold on and read before you proceed further

The methods are divided into Easy and Difficult based on how comfortable you are with the commandline. The Easy guide is recommended if you have no working knowledge of Python or scripting in general

The Easy Way (Using an App)

  • Login with your SID, RMN and OTP/ Password(deprecated) first
  • Once you login, your details are saved to your local storage so that you don't have to enter the details again and again
  • Every 24 hours, the playlist expires, so the app gives you the next expiry time and you will have to generate your playlist again before that time
  • The app can be found in the releases page
Minimum Supported  Android Version : Android 5.0

The Difficult Way (Using a Script)

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

Some Good M3U Players for different platforms

Find some good M3u players here

Auto Generating Playlists in 24 hours

The issue with the playlist, is that it expires in 24 hours as the access tokens have a validity of 24 hours. So the straightforward way would be do the entire process (without login) again after the playlist expires but man is lazy and so there are two brilliant solutions so that you lazy bums don't have to re-generate after a day

How it works

If you're interested in how this mechanism works, Refer to docs

Discussion and Support

homepage

License and Disclosures

This code is just a CASE STUDY on how the authentication mechanism and live streaming using IPTV works I am in no way responsible if you misuse the code and cause revenue loss to the concerned parties and owners of the portal

This code is protected under the MIT license

tata-sky-iptv's People

Contributors

allotomato avatar ankitgupta23022 avatar deejayskl avatar forcegt avatar github-actions[bot] avatar mahipat99 avatar mannu-1 avatar niikhill avatar nikhilkharade avatar saifshaikh1805 avatar shra1v32 avatar sp4rkiop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tata-sky-iptv's Issues

Some channels not working

Suddenly some channels stopped working Set Max (SD), Sony Wah, Disney as I got only this cannels not working, Tatasky source is okay as I found those are playing on Tatasky Watch and other unofficial playlists.

How can i register it please?

When I visit https://www.tataplay.com/, the following information appears:

403 ERROR
The request could not be satisfied.
The Amazon CloudFront distribution is configured to block access from your country. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

Generated by cloudfront (CloudFront)
Request ID: bUdtB-D77qMavB8KkroxWL3eR7vrv631BHmXSXlTI1ECwl9gANp29w==

Most of the links are not playable

Hi, Thanks for the script. But most of the links are not playable in Kodi, it says one or more items failed to play.
Not sure if that is a WIP?

NOT ABLE TO LOGIN THROUGH OTP

Not able to login through OTP, its showing status as False.
First it was working perfectly but now I'm not able to login again.

KODI Playback error

Widevine Licence URL is very long, Is it possible to shorten it? KODI is not able to play with the long Licence URL.

Hii bru

I needmu3 isreli plylist plZ

Play

How to play live channel in JW Player

Delay in channels

There is a one minute delay while watching the live channels. It is a concern while watching sports. Can we do something to reduce this delay to 30 seconds?

channels

Asking for Hacks, Successfully ignored

Not working in kodi

Hello sir
I try to play kodi in PVR SIMPLE IPTV
Showing error playback error.

Solve this issue.

ott api not working

I tried to login different users all i got below reponse with your code. Needs to update your API. From site it's working fine.

{
"code": 3016,
"message": "Please enter valid OTP.",
"data": {},
"localizedMessage": "Please enter valid OTP."
}

Genre/Section Issue

Can you add more specific Genre/section like Hindi Movies, Hindi Entertainment, Knowledge and Lifestyle, Marathi etc, and put that particular channels in that Genre/section same as we see in Tata Sky set up box.

The playlists don't work as intended

I changed the playlist format (not committed yet) to include the support for the latest input stream adaptive plugin for Matrix and the PVR IPTV Plugin
However Kodi renders a black screen
It tries to play the media and the metadata is returned correctly but the screen is still blank

The server returns error 500

Auto Generatation

Is there any way so I can enable auto generate the playlist on daily basis.

How to refresh login token?

Every time I need to login in order to get the channel session token? Any way to refresh it without login.

Language

First of all - Amazing work
Congratulations and many thanks
The only problem is that while watching channels under "Knowledge" section, we can't change language, I was watching NatGeo Wild and I guess it was running Telugu.
Can we fix this ?

Regards

M3U is not generating

Hi,

Getting following error while trying to generate M3U file in both OTP as well as password method of login. Please advice. Thanks!

Could not generate JWT for channelId: 80
Didn't get license for channel: Id: 80 Name:SONY MAX HD
Continuing...Please get license manually for channel : SONY MAX HD
Response: {"code":"TKERR007","message":"Invalid epids"}
Could not generate JWT for channelId: 72
Didn't get license for channel: Id: 72 Name:REPUBLIC TV
Continuing...Please get license manually for channel : REPUBLIC TV
Response: {"code":"TKERR007","message":"Invalid epids"}Response: {"code":"TKERR007","message":"Invalid epids"}

Faiiled

Failed to connect to localhost error. Tried all

Missing user subscribed channels from allChannelsPlaylist.m3u

It seems that the option "Generate my Playlist" does not include all the channels that I have subscribed to. For example, I have subscribed to Sony SAB (non-HD), Star Movies HD, and a few more but there are not part of the generated Playlist m3u.

I also ran "allChannels.py" still those channels are not included in the allChannels.json file. It would be really great and helpful if someone looks into this.

Utv action & star gold select hd

Subscribed to utv action & star gold select hd on my tatasky account, i can watch these channels on STB but in m3u didn't get those channels. Can you please help.

Can't login

When Login into the app it says max login count 10

Any Chances of adding other OTT

any chances of you adding other ott live tv channel list ?
it will be great to generate voot, zee5, sony live tv from one app !

Thanks for the script and app, its really helpful !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.