diff --git a/README.md b/README.md index 2092ea3..37e794d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/UPDATE.md b/UPDATE.md index c42eaee..91e76f1 100644 --- a/UPDATE.md +++ b/UPDATE.md @@ -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 diff --git a/index.js b/index.js index 180ab7c..002bde6 100644 --- a/index.js +++ b/index.js @@ -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) => { @@ -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( - `