kannibalox / IMDb-Scout

Add links from IMDb pages to torrent sites -- easy downloading from IMDb
The Unlicense
47 stars 8 forks source link

torrentleech not working. #26

Open rezad1393 opened 5 years ago

rezad1393 commented 5 years ago

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?

kannibalox commented 5 years ago

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

rezad1393 commented 5 years ago

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

kannibalox commented 5 years ago

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.

rezad1393 commented 5 years ago

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 commented 5 years ago

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

rezad1393 commented 5 years ago

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 commented 5 years ago

this is the main page js

main.fd3a8c8098a60f778a6f.js:formatted.tar.gz