Skip to content

Commit

Permalink
V2.8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv-2015 committed Apr 22, 2023
1 parent 9b1ceae commit 4f4e69e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,17 @@ pkg install nodejs-lts -y
download script files and install

```bash
curl https://cdn.discordapp.com/attachments/1072165096656220170/1078659339860049991/JTVServer.zip -o JTVServer.zip && unzip JTVServer.zip && rm JTVServer.zip
curl https://cdn.discordapp.com/attachments/1072165096656220170/1099392894684647495/JTVServer_V2.8.6.zip -o JTVServer.zip && unzip JTVServer.zip && rm JTVServer.zip
```
or

```bash
curl https://github.com/dhruv-2015/JIOTVServer/releases/download/V2.8.6/JTVServer.zip -o JTVServer.zip && unzip JTVServer.zip && rm JTVServer.zip
```

download start script
```bash
curl -o start.sh https://raw.githubusercontent.com/dhruv-2015/JIOTVServer/main/V2.0.3/start.sh && sh start.sh
curl -o start.sh https://raw.githubusercontent.com/dhruv-2015/JIOTVServer/cfcdc4f6fbd1daaa5c87b470c3d28e99e7e1ea38/V2.0.3/start.sh && sh start.sh
```
if you face any error while download from github you can use discord link
```bash
Expand Down
4 changes: 2 additions & 2 deletions UPDATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ rm JTVServer -rf
after removing old files use next command to download new files and install in your termux

```bash
curl https://cdn.discordapp.com/attachments/1072165096656220170/1078659339860049991/JTVServer.zip -o JTVServer.zip && unzip JTVServer.zip && rm JTVServer.zip
curl https://cdn.discordapp.com/attachments/1072165096656220170/1099392894684647495/JTVServer_V2.8.6.zip -o JTVServer.zip && unzip JTVServer.zip && rm JTVServer.zip

```
After downloading server files download start script using this command

```bash
curl -o start.sh https://raw.githubusercontent.com/dhruv-2015/JIOTVServer/main/V2.0.3/start.sh && sh start.sh
curl -o start.sh https://raw.githubusercontent.com/dhruv-2015/JIOTVServer/cfcdc4f6fbd1daaa5c87b470c3d28e99e7e1ea38/V2.0.3/start.sh && sh start.sh
```
if you face any error while download from github you can use discord link
```bash
Expand Down
13 changes: 2 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (!fs.existsSync("channel-catchup.db")) {
}

app.get("/login", (req, res) => {
res.sendFile("public/login.html");
res.sendFile(path.join(__dirname, "public", "login.html"));
})

app.get("/admin", (req, res) => {
Expand All @@ -49,16 +49,6 @@ app.use("/", playlistRoute);
app.use("/catchup", catchulRoute);



app.get("/SonyLiv", (req, res) => {
let url = req.query.url;
res
.status(200)
.send(
`<html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><link rel="shortcut icon" type="image/x-icon" href="https://jiotv.com/src/resources/images/JioTV_logo.png"><link rel="stylesheet" href="https://cdn.plyr.io/3.6.2/plyr.css" /><link href="https://fonts.googleapis.com/css?family=Poppins|Quattrocento+Sans" rel="stylesheet" /><script src="https://cdn.plyr.io/3.6.3/plyr.js"></script><script src="https://cdn.jsdelivr.net/npm/hls.js"></script><script async src="https://www.googletagmanager.com/gtag/js?id=G-F033WLZ7K5"></script><script>window.dataLayer = window.dataLayer || [];function gtag() { dataLayer.push(arguments); }gtag('js', new Date());gtag('config', 'G-F033WLZ7K5');</script><style>html{margin:0;padding:0}html{font-family:sans-serif;background:#000}.plyr{height:100%;width:100%}:root{--plyr-color-main:#d9230f}.loading{position:fixed;top:0;left:0;width:100%;height:100%;background:#000;z-index:9999}.loading-text{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;text-align:center;width:100%;height:100px;line-height:100px}.loading-text span{display:inline-block;margin:0 5px;color:#d9230f;font-family:'Quattrocento Sans',sans-serif}.loading-text span:nth-child(1){filter:blur(0);animation:blur-text 1.5s 0s infinite linear alternate}.loading-text span:nth-child(2){filter:blur(0);animation:blur-text 1.5s .2s infinite linear alternate}.loading-text span:nth-child(3){filter:blur(0);animation:blur-text 1.5s .4s infinite linear alternate}.loading-text span:nth-child(4){filter:blur(0);animation:blur-text 1.5s .6s infinite linear alternate}.loading-text span:nth-child(5){filter:blur(0);animation:blur-text 1.5s .8s infinite linear alternate}.loading-text span:nth-child(6){filter:blur(0);animation:blur-text 1.5s 1s infinite linear alternate}.loading-text span:nth-child(7){filter:blur(0);animation:blur-text 1.5s 1.2s infinite linear alternate}.loading-text span:nth-child(8){filter:blur(0);animation:blur-text 1.5s 1.4s infinite linear alternate}.loading-text span:nth-child(9){filter:blur(0);animation:blur-text 1.5s 1.6s infinite linear alternate}@keyframes blur-text{0%{filter:blur(0)}100%{filter:blur(4px)}}.plyr__video-wrapper::before{position:absolute;top:10px;right:10px;z-index:10;content:'';height:35px;width:35px;background:url('') no-repeat;background-size:35px auto,auto}.plyr__video-wrapper::after{position:absolute;top:10px;left:10px;z-index:10;content:'';height:35px;width:35px;background:url(https://jiotv.com/src/resources/images/JioTV_logo.png) no-repeat;background-size:35px auto,auto}</style></head><body><div id="loading" class="loading"><div class="loading-text"><span class="loading-text-words">J</span><span class="loading-text-words">T</span><span class="loading-text-words">V</span><span class="loading-text-words">S</span><span class="loading-text-words">e</span><span class="loading-text-words">r</span><span class="loading-text-words">v</span><span class="loading-text-words">e</span><span class="loading-text-words">r</span></div></div><video autoplay controls crossorigin poster="https://jiotv.com/src/resources/images/JioTV_logo.png" playsinline></video></body><script> setTimeout(videovisible, 4000); function videovisible() {document.getElementById('loading').style.display = 'none';} document.addEventListener("DOMContentLoaded", () => { const e = document.querySelector("video"); const params = new URLSearchParams(window.location.search),n = "${url}",o = {}; if (Hls.isSupported()) { var config = { maxMaxBufferLength: 100,}; const t = new Hls(config); t.loadSource(n), t.on(Hls.Events.MANIFEST_PARSED, function (n, l) { const s = t.levels.map(e => e.height); o.controls = ['play-large', 'play', 'mute', 'volume', 'settings', 'fullscreen']; o.quality = {default: s[0],options: s,forced: !0,onChange: e => (function (e) {window.hls.levels.forEach((n, o) => {n.height === e && (window.hls.currentLevel = o);})})(e)}; new Plyr(e, o);}), t.attachMedia(e), window.hls = t } else {new Plyr(e, o) }});</script></html>`
);
});

// app.use(express.static(path.join(__dirname, "public")));

app.use(handler);
Expand All @@ -68,6 +58,7 @@ app.listen(PORT, () => {
console.log(chalk.green("THIS SERVER IS 100% FREE. PLEASE DON'T PAY ANYONE."));
console.log(chalk.green("STRICT ACTION WILL BE TAKEN AGAINST THOSE WHO ARE SELLING THIS."));
console.log(chalk.green("IF ANYONE TRYING TO SELL IT, PLEASE REPORT IT ON OUR DISCORD SERVER\nhttps://discord.gg/suyzkCQKhC"));
console.log(chalk.green("Please Stare Repo https://github.com/dhruv-2015/JIOTVServer"));
console.log(chalk.green("VERSION 2.8.6"));
console.log(chalk.green("980+ CHANNELS AVAILABLE. MORE FEATURES WILL COME SOON. STAY TUNED"));
console.log("===================================================================");
Expand Down

0 comments on commit 4f4e69e

Please sign in to comment.