patheticGeek / torrent-aio-bot

A bot for searching and downloading torrents easily with website and telegram bot
317 stars 464 forks source link

[SOLVED] "Search" feature isn't working... #97

Open rony-alt-ac opened 3 years ago

rony-alt-ac commented 3 years ago

Fork > Follow Basic steps properly then do this

1st Edit this file /web/src/screens/Search.js Line : 72

Screenshot from 2021-04-01 04-33-52

change <appname> to your heroku app name [I mean you have to choose a appname before creating a app in heroku :laughing: ]

2nd Edit Torrent Search Engines Edit /web/src/screens/search.js Line : 2 1337x .am change this to 1337x .to

Screenshot from 2021-04-01 05-03-26

Edit /crawllers/limetorrent/search.js Line : 2 change this "https://limetorrents.at/search?search={term}" to this "https://www.limetorrents.info/search/all/{term}/"

Screenshot from 2021-04-01 05-10-36

3rd Edit /index.js Line : 24-30

Replace the following code from Line 24 to Line 30

server.use(compression()); server.use(bodyParser.json()); server.use((req, res, next) => { res.setHeader('Access-Control-Allow-Origin', '*'); res.setHeader('Access-Control-Allow-Headers','Origin, X-Requested-With, Content-Type,Accept, Authortization');
res.setHeader('Acces-Control-Allow-Methods','GET, POST, PATCH, DELETE'); ext(); });

Like this

Screenshot from 2021-04-01 05-26-51

Now update the app on heroku Connect Heroku to github > Select your repo > "Automatic deploys"

sobuj53 commented 3 years ago

A pull request would have been better.

sobuj53 commented 3 years ago

Piratebay does not work, also 1st change is really not needed and 2nd and 3rd change also can be done in Heroku by adding LIMETORRENT_SITE and O337X_SITE config variable. A search for Chernobyl in Piratebay returns this link https://thepiratebay.org/search.php?q=Chernobyl&cat=0, I've tried to add https://thepiratebay.org/search.php?q={term}&cat=0 as env var PIRATEBAY_SITE but doesn't work. Any idea what should be the correct url?

ccharya commented 3 years ago

i know its closed and im probably 2 late ........i tried it and its not working for me , can u give your site link so i can use your site for SEARCH_SITE ?