Skip to content

Commit

Permalink
2.4.2
Browse files Browse the repository at this point in the history
Updated bugs and fixes
  • Loading branch information
nithinlycanz committed Nov 16, 2023
1 parent 251c58d commit e93058c
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 22 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Step 4
run it

$ node torrent.js <Magnet Link>


PS:Use this link if needed
(magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d)
-----"Thank you"------
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href='https://fonts.googleapis.com/css?family=Yellowtail:400' rel='stylesheet' type='text/css'>
<style>

/* neon style */
/* neon style */

.neonText {
color: #fff;
Expand Down Expand Up @@ -167,7 +167,6 @@
display: block;
margin: 0 auto;
width: 50%;}
}
a i::before
{
content: '';
Expand Down
69 changes: 69 additions & 0 deletions link_site copy.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@


// import express from "express";
const express = require('express');
const app = express();
const lib = require("./torrent.cjs");
// import { plusSlides } from './torrent.js';

//import * as path from 'path';
const path = require('path');
const router = express.Router();
// import path from 'path';
const _dirname = path.resolve();
var bodyParser = require('body-parser')
// import bodyParser from "body-parser";
var urlencodedParser = bodyParser.urlencoded({extended: false});


router.get('/',function(req,res){
res.sendFile(path.join(_dirname+'/index.html'));
//__dirname : It will resolve to your project folder.
});

router.get('/about',function(req,res){
res.sendFile(path.join(_dirname +'/index.html'));
});

// router.use('/post',function(req,res){
// res.sendFile(path.join(_dirname +'/index.html'));
// });

app.use('/post', express.static(path.join(_dirname, '/')));

router.post('/post', urlencodedParser, function(req,res){
console.log(req.body);
//var myText = req.body.url; //mytext is the name of your input box
//res.send('Your Text:' +myText);
lib.plusSlides(req.body.url);
//res.render('post', {qs: req.query});
//res.redirect("/");
});

//add the router
app.use('/', router);
app.listen(process.env.port || 8080);

console.log('To download file search following url in any browser:\nhttp://localhost:8080/post');


//"start": "react-scripts start",
//"test": "react-scripts test",

//.............................................................

// import express from "express";
// const app = express();

// app.post("/post", (req, res) => {
// console.log("Connected to React");
// res.redirect("/");
// });

// app.get("/", (req, res) => {
// res.send("Hello World!");
// });

// const PORT = process.env.PORT || 8080;

// app.listen(PORT, console.log(`Server started on port ${PORT}`));
2 changes: 1 addition & 1 deletion link_site.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


// import express from "express";
// import express from "express"; we use lib instead
const express = require('express');
const app = express();
const lib = require("./torrent.cjs");
Expand Down
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e93058c

Please sign in to comment.