Convivea

Bit Che => Scripts & Development => Topic started by: acieffe on February 23, 2013, 06:38:40 pm

Title: italian link il corsaro nero
Post by: acieffe on February 23, 2013, 06:38:40 pm
I'd like to add this italian link
http://ilcorsaronero.info/ (http://ilcorsaronero.info/)
thanks and congratulations
Title: Re: italian link il corsaro nero
Post by: Bovski on February 24, 2013, 12:18:54 am
Strange but I don't seem to be able to get this one working all seems fine and if i paste the torrent url retrieved in to my browser it wants to open in µtorrent.

I'm guessing this is one for chip!

Code: [Select]
[script]
name=ilCorSaRoNeRo
source=ilCorSaRoNeRo.info
author=Bovski 2013/01/31
modified=
version=2

[home]
1=http://ilcorsaronero.info
2=http://ilcorsaronero.info.proxy.piratenpartij.nl

[profiles]
all=/argh.php?search=%SEARCH%
video=/
audio=/
apps=/
games=/


[code1]
x=findh(x,@data,`<tr class="odd"`,`>`,)
z=find(x,@data,`</table>`)
@data=crop(@data,x,z)
@data=replace(@data,`<td align="center"   >`,`</td><td align="center"   >`)
@data=replace(@data,`</td>`,`<!--EOL--></td>`)
@r=split(@data,`</tr>`)

start
@q=split(@r,`</td>`)
t=array(@q,1)
$page=extract(@i,t,`href="`,`"`)
$name=extract(@i,t,`>`,`</A>`)
$size=array(@q,2)
t=array(@q,3)
@i=find(@i,t,`<input type="submit"`)
v=extract(@i,t,`value="`,`"`)
$torrent=&(`http://torcache.net/torrent/`,v,`.torrent`)
$date=array(@q,4)
$seeds=array(@q,5)
$leeches=array(@q,6)
aloop
[/code1]
Title: Re: italian link il corsaro nero
Post by: chip! on March 17, 2013, 06:31:14 am
issue is with torcache.net..  they are very sensitive to the 'referer' that is used to request the .torrent.. so we have to blank it out in bit che:

$referer=put(``)
Title: Re: italian link il corsaro nero
Post by: chip! on March 17, 2013, 06:31:53 am
added to the script pack!

Code: [Select]
[script]
name=ilCorSaRoNeRo
source=ilCorSaRoNeRo.info
author=Bovski 2013/01/31
modified=chip 2013/03/17
version=2

[home]
1=http://ilcorsaronero.info
2=http://ilcorsaronero.info.proxy.piratenpartij.nl

[profiles]
all=/argh.php?search=%SEARCH%
video=/
audio=/
apps=/
games=/


[code1]
x=findh(x,@data,`<tr class="odd"`,`>`,)
z=find(x,@data,`</table>`)
@data=crop(@data,x,z)
@data=replace(@data,`<td align="center"   >`,`</td><td align="center"   >`)
@data=replace(@data,`</td>`,`<!--EOL--></td>`)
@r=split(@data,`</tr>`)

start
@q=split(@r,`</td>`)
t=array(@q,1)
$page=extract(@i,t,`href="`,`"`)
$name=extract(@i,t,`>`,`</A>`)
$size=array(@q,2)
t=array(@q,3)
@i=find(@i,t,`<input type="submit"`)
v=extract(@i,t,`value="`,`"`)
$torrent=&(`http://torcache.net/torrent/`,v,`.torrent`)
$date=array(@q,4)
$seeds=array(@q,5)
$leeches=array(@q,6)
$referer=put(``)
aloop
[/code1]
Title: Re: italian link il corsaro nero
Post by: Bovski on April 12, 2013, 10:35:08 am
Thanks Chip your a star

I know this may sound silly but if torcache.net doesn't like some referers and is happy without a referer then why bother sending any referer info to torcache.net