IMDb-Scout icon indicating copy to clipboard operation
IMDb-Scout copied to clipboard

torrentleech not working.

Open rezad1393 opened this issue 5 years ago • 7 comments

I am trying to add this to websites supported by this script. but I have issue with false positive (always says found results) the url you used is not working and I am also trying to add support for imdb-id which has this url https://www.torrentleech.org/torrents/browse/index/imdbID/ttxxxxxxxx but when no movies are found the script still says found. the matchRegex that I use is this " 'matchRegex': /No results found.</div>/, " but this doesnt work. this is the part that shows no results found: "

No results found.
" using that also doesnt work. any idea what should I use?

rezad1393 avatar May 18 '19 01:05 rezad1393

If you manually edit the script to remove the </div> part, does that fix the false positives?

kannibalox avatar May 18 '19 02:05 kannibalox

none of these work: /No results found.<\/div>/ /No results found./ /<div>No results found.<\/div>/

rezad1393 avatar May 18 '19 05:05 rezad1393

Unfortunately I'm not on TorrentLeech so I can't test things. If you find a combination that works, I'm ready and willing to merge the change.

kannibalox avatar May 18 '19 17:05 kannibalox

my problem is that whatever I use doesn't work and also yours doesn't work (which is not id based and is name based)

rezad1393 avatar May 18 '19 17:05 rezad1393

I can give you the html part and you can give me the needed regex mach for it?

rezad1393 avatar May 18 '19 17:05 rezad1393

I am not a web devepoler so I dont know how to show you the result page saving the page in firefox just text the text with no /div/ or anything like that. I dont know why.I just know some html from a long time ago so I dont know how non-static pages are captured to do it. the page source for results also doesnt show that div and is seems like a generic page instead of actual page that is rendered in firefox.

this is the best I can take out of firefox (it doesnt let me save from web developer and I dont know how)

<div class="header col-md-12" data-field="imdbID"><button class="close btn-inline"><span>×</span></button>Torrents for the movie: null</div>

rezad1393 avatar May 18 '19 17:05 rezad1393

this is the main page js

main.fd3a8c8098a60f778a6f.js:formatted.tar.gz

rezad1393 avatar May 18 '19 17:05 rezad1393