Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ashok216 committed Oct 8, 2021
0 parents commit 1d4284d
Show file tree
Hide file tree
Showing 10 changed files with 876 additions and 0 deletions.
91 changes: 91 additions & 0 deletions .github/workflows/TS-Playlist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: TS-Playlist
on:
workflow_dispatch:
inputs:
git_token:
description: 'Enter your GitHub Token'
required: true
tata_mobile:
description: 'Enter your Tata Sky Mobile Number'
required: true
sub_id:
description: 'Enter your Tata Sky Subscriber ID'
required: true
tata_pass:
description: 'Enter your Tata Sky Password'
required: true
git_mail:
description: 'Enter your GitHub Mail Address'
required: true
git_id:
description: 'Enter your GitHub ID'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Installing Dependencies
continue-on-error: true
run: |
git config --global user.name "${{ github.event.inputs.git_id }}"
git config --global user.email "${{ github.event.inputs.git_mail }}"
git clone https://github.com/techiesneh/Sneh-TataSky
cd Sneh-TataSky/
cd code_samples/
sudo apt install expect -y
wget https://gist.githubusercontent.com/techiesneh/85392ca08bc5dc8cb44da00605450cf3/raw/TSlogin.exp
chmod 777 TSlogin.exp
sed -i 's/PASSWORD/${{ github.event.inputs.tata_pass }}/g' TSlogin.exp
sed -i 's/SUB_ID/${{ github.event.inputs.sub_id }}/g' TSlogin.exp
sed -i 's/MOB_NO/${{ github.event.inputs.tata_mobile }}/g' TSlogin.exp
./TSlogin.exp >> /dev/null 2>&1
touch mytoken.txt
echo "${{ github.event.inputs.git_token }}" >> mytoken.txt
gh auth login --with-token < mytoken.txt
mkdir git-repo/
cd git-repo/
touch mytatasky.m3u
echo "Initial Test" >> mytatasky.m3u
gh gist create mytatasky.m3u | tee gist_link.txt
sed -i 's/gist/${{ github.event.inputs.git_token }}@gist/g' gist_link.txt
gist_url=$(cat gist_link.txt)
dir="${gist_url##*/}"
git clone https://github.com/techiesneh/Sneh-TataSky
gh repo create MyTataSky-Daily --private -y || echo "New repo has been created"
mv ../TSlogin.exp Sneh-TataSky/code_samples/
chmod 755 Sneh-TataSky/code_samples/TSlogin.exp
cd Sneh-TataSky/
mkdir .github
cd .github
mkdir workflows
cd workflows
wget https://gist.githubusercontent.com/techiesneh/adf36935d770074a6ba9484f2e3a5df8/raw/TSDailyWF.yml
wget https://gist.githubusercontent.com/techiesneh/66cc049ca1c58729e1f26c0fa9287d42/raw/TSaddon.txt
export dir=$dir
export gist_url=$gist_url
export git_id=${{ github.event.inputs.git_id }}
export git_token=${{ github.event.inputs.git_token }}
export git_mail=${{ github.event.inputs.git_mail }}
cat TSaddon.txt | envsubst >> TSDailyWF.yml
rm TSaddon.txt
cd ../..
rm -rf .git
cd ..
git clone https://${{ github.event.inputs.git_token }}@github.com/${{ github.event.inputs.git_id }}/MyTataSky-Daily
rm -rf MyTataSky-Daily/*
rm -rf MyTataSky-Daily/.github
mv Sneh-TataSky/* MyTataSky-Daily/
mv Sneh-TataSky/.github MyTataSky-Daily/
cd MyTataSky-Daily/
git add .
git commit --author="TechieSneh<[email protected]>" -m "Update Repo"
git push
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

111 changes: 111 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<p align="center"><img src="https://p.kindpng.com/picc/s/404-4041763_tata-sky-logo-png-tata-sky-logo-vector.png" height="100" width="200"></p>

<h1 align='center'>✯ TataSky Auto Updater✯</h1>

<!-- DO NOT EDIT FILE AND ADD YOU NAME HERE AND PUBLISH -->
<!-- © 2021 TechieSneh -->

<h4 align='center'>📺 The PyBash Script For Auto Update TataSky PlayLists <br>and Play it on Tivimate 📽 <br>🌟 Star This Repositry Befor Fork 😎<br>😊 Don't Remove Credits<br>Don't Edit This Script 😈<br><br></h4>
<br>

<h2>😇 Features in TataSky :</h2>

- HQ Streaming Free of Cost <br>
- Will Works In 144p, 240p, 360p, 480p, 1080p in this Gives Qualities
- Use OTT Navigator App for quality change option
- TiviMate is preferred app for this playlist

<br>
<h2>🍁 TS Generator Info : </h2>

- This repository is for automatically generating playlist everyday with the same link.
- You don't need to use any app or anything,
- You just need to do this one-time setup and you're good to go.



<br>
<h2>🐱 Prerequisites : </h2>

* You need to have your own GitHub Token
GithubToken[https://github.com/settings/tokens]
<p align="left"><img src="img/4.png" width="650" height="340"></p>

* Tata Sky account details (Like Subscriber ID, Tata Sky Account Password, Tata Sky Registered Phone number)

* Your GitHub Email and UserID which you're using now


<br>
<h2>🤔 How To Setup : </h2>

### Steps:
1. First of all ```fork``` this repo.
<p align="left"><img src="img/1.png" width="350" height="150"></p>


2. Then go to ```Actions Tab``` in your forked-repo.
<p align="left"><img src="img/2.png" width="550" height="150"></p>


3. Now enter all your details.
4. Click on ```Run Wokflow```
- Step 1
<p align="left"><img src="img/3.png" width="900" height="400"></p>

- Step 2
<p align="left"><img src="img/5.png" width="800" height="400"></p>


5. After clicking on ```Run Workflow```, A new repository will be created in your account named ```"MyTataSky-Daily"```
<p align="left"><img src="img/6.png" width="280" height="180"></p>

6. Go to the new repository named "MyTataSky-Daily"
7. Now under actions click on ```Run Workflow```
<p align="left"><img src="img/7.png" width="900" height="400"></p>


8. Once the workflow has been successful, Check your GitHub gists [__https://gist.github.com__/```your_git_username```] then click on view your Gists.
- ```For Example : https://gist.github.com/techiesneh```
9. Now you'll see that you'll have ``` mytatasky.m3u ``` there.

10. Open it by clicking on it, Then tap on raw. Copy that link and then modify the link by removing only the the hashcode token after /raw/ in the URL.
- ```With HashCode: https://gist.githubusercontent.com/techiesneh/080307665ca52d259a6f12cc387c368e/raw/f92b8598766239056e70cafe2ef42b1369f73eae/test.m3u```
- ```Without HashCode: https://gist.githubusercontent.com/techiesneh/080307665ca52d259a6f12cc387c368e/raw/test.m3u```

11. There you go, Now use that URL in your Tivimate. And Tivimate will update the playlist automatically once you open the app.

12. ``` Most Important ``` Now you don't need to touch anything, It updates the playlist on it's own everyday and you only need to Update the playlist in Tivimate.
All the steps above are to be done only for once.


<br>
<h2>🤡 Explanation on how this works : </h2>

- This works purely on the basis of GitHub Workflow Actions, So a VERY BIG THANKS to GitHub.
- I've created the script where Actions will automatically trigger the workflow everyday for 2:15 AM UTC.
- The tokens, GitHub email and ID are required because we are basically creating another repo and gists with this script using them.

<br>
<h2>📝 Credits : </h2>

1. ``` ForceGT (Gaurav Thakkar) ``` - For This TataSky Python Repo
2. ``` Nageshwar128 ``` - For This Bash Script & Adding Login
3. ``` WF Owner (GitHub) ``` - For Their GitHub Actions
3. ``` Me (techiesneh) ``` - For Just Modifying 😅

<br>

<h2>🚸 Warnings :</h2>

- This is Just For Educational Purpose
- DO NOT Sell this Script, This is 💯% Free

<h3>🤗 Meet Me : </h3>

- For any Help [Techie Sneh](https://t.me/techiesneh)<br>
- Or Contact at [[email protected]](mailto:[email protected])


---
<h4 align='center'>© 2021 Techie Sneh</h4>
Binary file added img/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1d4284d

Please sign in to comment.