didn't know if I was supposed to add the script here or just to git
Same script just the site changed
Would be clearer if we could have in-line maths
start
@q=split(@r,`</td>`,2)
t=array(@q,3)
o=find(@i,t,`./viewtopic.php`)
if (o>0)
a=put(3)
b=put(8)
c=put(9)
d=put(12)
e=put(13)
else
a=put(5)
b=put(10)
c=put(11)
d=put(14)
e=put(15)
end if
t=array(@q,a)
@i=find(@i,t,`href`)
$page=extract(@i,t,`"./`,`"`,@home)
$name=extract(@i,t,`>`,`</a>`)
t=array(@q,b)
@i=find(@i,t,`href`)
$torrent=extract(@i,t,`"./`,`"`,@home)
$size=array(@q,c)
$seeds=array(@q,d)
$leeches=array(@q,e)
aloop
[/code1]
would have been shorter as
start
@q=split(@r,`</td>`,2)
t=array(@q,3)
o=find(@i,t,`./viewtopic.php`)
if (o>0)
d=put(-2)
end if
t=array(@q,5+d)
@i=find(@i,t,`href`)
$page=extract(@i,t,`"./`,`"`,@home)
$name=extract(@i,t,`>`,`</a>`)
t=array(@q,10+d)
@i=find(@i,t,`href`)
$torrent=extract(@i,t,`"./`,`"`,@home)
$size=array(@q,11+d)
$seeds=array(@q,14+d)
$leeches=array(@q,15+d)
aloop
[/code1]
or even a third argument to the array command to do the add would be gr8
t=array(@q,5,d)