JimmyLaurent / torrent-search-api

Yet another node torrent scraper (supports iptorrents, torrentleech, torrent9, torrentz2, 1337x, thepiratebay, Yggtorrent, TorrentProject, Eztv, Yts, LimeTorrents)
MIT License
395 stars 99 forks source link

Suggestions about request and bluebird #113

Open f1she3 opened 4 years ago

f1she3 commented 4 years ago

Hi ! A big thanks for this library that I use and find really useful. Just a quick suggestion about two libraries it depends on :

Since request is deprecated, I could rewrite the http requests using the native https module which performs very well. And for bluebird since promises are now part of nodeJS, I think everything could be done natively, but maybe you see other benefits about using it :)

I would be interested to have your thoughts about this, and could start working on it if you'd like to.

Have a nice day

JimmyLaurent commented 4 years ago

Hello,

First of all thanks for proposing your help and sorry for the delay.

f1she3 commented 4 years ago

Hi !

Sorry for the delay too, I have a limited amount of time currently 😁 I started rewriting almost every provider using https://github.com/axios/axios except rarbg because the provider supports authentication and I don't have credentials to test the code, but it works well for the others. I think I only have to rewrite the request method now in lib/Torrent provider.js , and a big part of the job would be done. I could make a pull request with the changes I already made if you'd like to, so that anybody could potentially finish the job if I don't find the time.

I will try to replace bluebird also, this should not take a lot of time.

Have a nice day !

f1she3 commented 4 years ago

Any news from this ?