Error on TntVillage script, the script show only the torrent on the first page and can't show the other result
Here is the post request the site make to go to the next page
REQUEST HEAD
POST /index.php?act=allreleases HTTP/1.1
Host: forum.tntvillage.scambioetico.org
Connection: keep-alive
Content-Length: 84
Cache-Control: max-age=0
Origin:
http://forum.tntvillage.scambioetico.orgUpgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer:
http://forum.tntvillage.scambioetico.org/index.php?act=allreleasesAccept-Encoding: gzip, deflate
Accept-Language: it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4
Cookie: member_id=******; pass_hash=**********************; session_id=*******************************
POST REQUEST
For Page 2
sb=0&sd=0&cat=0&releaser=&stn=20&filter=topolino&next=Pagine+successive+%3E%3E
For Page 3
sb=0&sd=0&cat=0&releaser=&stp=0&stn=40&filter=topolino&next=Pagine+successive+%3E%3E
For Page 4
sb=0&sd=0&cat=0&releaser=&stp=20&stn=60&filter=topolino&next=Pagine+successive+%3E%3E
For Page 5
sb=0&sd=0&cat=0&releaser=&stp=40&stn=80&filter=topolino&next=Pagine+successive+%3E%3E
.....
.....
.....
Page 24
sb=0&sd=0&cat=0&releaser=&stp=420&stn=460&filter=topolino&next=Pagine+successive+%3E%3E
Page 25
sb=0&sd=0&cat=0&releaser=&stp=440&stn=480&filter=topolino&next=Pagine+successive+%3E%3E
Totale result 493, Total Page 25
This is the correct value to use for the post request
stn=%PAGENUM%*20-20
stp is present only from page 3
stp= %PAGENUM%*20-40
This is the current plugin for TNTVillage.Scambioetico.org
[script]
name=TNTVillage.Scambioetico.org
source=TNTVillage
author=chip
modified=chip 2015/12/30
pwd=1
version=3
[login]
login=http://forum.tntvillage.scambioetico.org/index.php?act=Login&CODE=01
login2=http://proxy.piratenpartij.nl/forum.tntvillage.scambioetico.org/index.php?act=Login&CODE=01
form=referer=http%3A%2F%2Fforum.tntvillage.scambioetico.org%2Findex.php%3Fact%3Dallreleases&UserName=%USER%&PassWord=%PASS%&CookieDate=1&Privacy=1
failed=method="post" name='LOGIN'
failed2=>Benvenuto Visitatore (
[home]
1=http://forum.tntvillage.scambioetico.org/
2=http://piratenproxy.nl/forum.tntvillage.scambioetico.org/
[profiles]
all=/index.php?act=allreleases&st=%PAGENUM%*20&filter=%SEARCH%&releaser=&sb=1&sd=1&cat=0
[nextpage]
type=2
initial=0
morepages=<input type="submit" label="Pagine successive" name="next" value="Pagine successive >>"/>
[code1]
x=findh(x,@data,`<!--TORRENT TABLE-->`)
z=find(x,@data,`<!--END TORRENT TABLE-->`)
@data=crop(@data,x,z)
@data=vacuum(@data)
@data=replace(@data,`</td></tr></table>`,`<bc>`)
@r=split(@data,`</tr>`)
start
@q=split(@r,`</td>`)
t=array(@q,0)
@i=find(@i,t,`href=`)
$page=extract(@i,t,`'`,`'`)
$name=extract(@i,t,`>`,`</`)
t=array(@q,1)
$name=&($name,` `,t)
t=array(@q,7)
@i=find(@i,t,`href=`)
j=extract(@i,t,`'`,`'`)
pid=extract(1,t,`&pid=`,`'`)
$torrent=&(@home,`index.php?act=Attach&type=post&id=`,pid)
$size=put(`1 MB`)
t=array(@q,4)
@i=find(@i,t,`<span`)
$seeds=extract(@i,t,`>`,`</`)
t=array(@q,3)
@i=find(@i,t,`<span`)
$leeches=extract(@i,t,`>`,`</`)
aloop
[/code1]
This is the max i can do to help, can someone fix it..