Comments (12)
Just tested it, it seems to work fine for me.
Could you try again please ?
from torrent-search-api.
No, same result. Search is working, but download is not. Here is the code I'm using :
const TorrentSearchApi = require('torrent-search-api');
TorrentSearchApi.enableProvider('YggTorrent', 'jeo', 'password');
var todl = { "title": "Debian-Stretch-v9.5-Mutli-64bits-DVD02-NoTag",
"time": "2018-10-02T07:53:48.000Z",
"seeds": 1,
"peers": 0,
"size": "4.35Go",
"desc":
"https://www2.yggtorrent.gg/torrent/application/linux/323257-debian-stretch-v9+5-mutli-64bits-dvd02-notag",
"id": "323257",
"provider": "Yggtorrent",
"link":
"https://www2.yggtorrent.gg/engine/download_torrent?id=323257" };
f="/Users/jeo/prout.torrent";
TorrentSearchApi.downloadTorrent(todl, f);
The file :
$ cat prout.torrent
Vous devez vous connecter pour télécharger un torrent
from torrent-search-api.
Weird, it's working for me..
I assume you tried to login with your browser and everything is fine.
Could you try with a fresh account ? ip ?
Thx
from torrent-search-api.
Hi, having same issue, so far:
if you make a search then a download it works
if you just make a download it doesn't
...
from torrent-search-api.
Ok thanks, I reproduced.
I look into it now.
from torrent-search-api.
NO [may be: TorrentProvider.fixUnstableUrl() calls this.clearCookie()]
from torrent-search-api.
It seems to be related with this indeed.
If you change the baseUrl of yggtorrent to "https://www.yggtorrent.gg", it works.
from torrent-search-api.
if you call ensureLogin
then make search
then a download it doesn't works.
from torrent-search-api.
It looks like a problem with cloudfare, for some reasons if the first request is a post, it doesn't work (I didn't check, but it may not set the cloudfare cookie).
Anyway, I fixed it by adding an extra get query before the login.
You can try the 2.0.7 release.
from torrent-search-api.
nice one, thank you.
to avoid copy code in ygg's login you can:
async login() {
await this.request(this.baseUrl, null, null, false);
await super.login();
this.lastLoginTime = Date.now();
}
from torrent-search-api.
Sure, thx for the review.
from torrent-search-api.
It's working, thanks @JimmyLaurent !
from torrent-search-api.
Related Issues (20)
- How i can use proxy with this package HOT 1
- Feature req: Specify scrapes for only webtorrents HOT 2
- Yggtorrent - CaptchaError: captcha HOT 19
- Rarbg not working anymore HOT 1
- Error :: Module not found: Can't resolve '_http_common'
- TypeError: TorrentSearchApi is not a function HOT 11
- IPTorrents Authentication Doesn't Work HOT 8
- ThePirateBay doesn't seem to be working HOT 8
- Can't Deploy in Heroku HOT 3
- Provider ThePirateBay magnet name undefined
- cannot read property "toLowerCase' of undefined when getting magnet links HOT 3
- Suggestions about request and bluebird HOT 3
- [YGGTorrent] Error in torrent file HOT 2
- Unable to use Ygg provider HOT 14
- eztv.io changed to eztv.re HOT 1
- [Docs] No Custom Provider documentation
- uniqueName error when passed a number HOT 1
- this npm package requires netmask@^1.0.6 via a transitive dependency on [email protected]
- Error in searching torrents HOT 1
- Dead repo ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torrent-search-api.