Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rony-alt-ac opened this issue Apr 1, 2021 · 3 comments
Open

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

rony-alt-ac opened this issue Apr 1, 2021 · 3 comments

Comments

@rony-alt-ac
Copy link

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 😆 ]

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
Copy link
Contributor

sobuj53 commented Apr 3, 2021

A pull request would have been better.

sobuj53 added a commit to sobuj53/torrent-aio-bot that referenced this issue Apr 3, 2021
@sobuj53
Copy link
Contributor

sobuj53 commented Apr 3, 2021

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
Copy link

ccharya commented Jul 12, 2021

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants