Bit Che > Scripts & Development
Pirate Party Proxy's
Bovski:
As you may be aware TPB is being blocked in a lot of countries even my beloved England the nice people at the Pirate Party UK have provided a proxy so that everyone can carry on enjoying the TPB.
They are even good enough to provide it in a nice HTTPS form so it will only work on Bit Che 2.0 build 16 - beta or Newer thanks chip.
The piraten partij nl where nice enough to provide a proxy for KickAssTorrents (kat.ph.proxy.piratenpartij.nl)
chip!:
awesome, thanks Bovski! great to see you back :)
I will try to post the latest beta build soon that adds support for URL mirrors in the existing script, as example:
--- Code: ---[script]
name=PirateBay.se
source=PirateBay.se
author=chip
modified=Bovski(ASC) 2011/05/29
notes=http://thepiratebay.se/s/?q=searchtest&searchTitle=on&page=0&orderby=99 *bug: sets a cookie but bit che needs to follow 302 redirect to search page.
enabled=1
home=http://thepiratebay.se/
version=2
cookie=tpb=1;
[mirrors]
index=1
1=http://thepiratebay.se
2=https://tpb.pirateparty.org.uk
[profiles]
all=%MIRROR%/search/%SEARCH%/0/99/0
audio=%MIRROR%/search/%SEARCH%/0/99/100
video=%MIRROR%/search/%SEARCH%/0/99/200
apps=%MIRROR%/search/%SEARCH%/0/99/300
games=%MIRROR%/search/%SEARCH%/0/99/400
[code1]
x=findh(x,@data,`searchResult`,`</tr`,`>`,)
z=find(x,@data,`</table>`)
@data=crop(@data,x,z)
@data=vacuum(@data)
@data=replace(@data,`</TD>`,`<!--EOL--></TD>`)
@data=replace(@data,` TiB`,` TB<!--EOS-->`)
@data=replace(@data,` GiB`,` GB<!--EOS-->`)
@data=replace(@data,` MiB`,` MB<!--EOS-->`)
@data=replace(@data,` KiB`,` KB<!--EOS-->`)
@r=split(@data,`</tr>`)
start
@q=split(@r,`</td>`,2)
t=array(@q,1)
$page=extract(@i,t,`href="`,`"`,`%MIRROR%`)
$name=extract(@i,t,`title="details for`,`"`)
$torrent=extract(@i,t,`href="`,`"`,`%MIRROR%`)
k=find(1,$torrent,`magnet:?`)
if (k>0) then
$torrent=mid($torrent,k)
end if
@i=find(@i,t,`"detDesc">Uploaded`)
$size=extract(@i,t,`Size `,`<!--EOS-->`)
$seeds=array(@q,2)
$leeches=array(@q,3)
aloop
[/code1]
--- End code ---
chip!:
In reviewing, I'm probably going to make a few changes to the mirror support implementation. I see a few things I can improve on (home page, mirror index survival after script update, script variable used).
Bovski:
This is awesome.
is home= needed if there is a mirrors section
is mirrors the correct term as if the main site goes down so do the mirrors these are more like gateways or proxies
P.S.
is this forum limited access ? http://convivea.com/forums/index.php?topic=2138.msg19408#msg19408
chip!:
yeah i guess this sub forum was... I created it hidden because I was testing out an idea for online storage of the scripts to be embedded in the forums here.
not sure if 'mirrors' is a bad name or not. i think its probably the most recognizable to the most amount of people though.
ok thanks, I guess 'home=' isnt needed if the script has a given 'mirror'... i'll make that change instead of adding another 'home' for a given 'mirror'.
and I think i'm going to leave '%MIRROR%' in the 'code' of the script because its actually not a variable that can be used, like @data, but rather, its a pure string replacement of the script for the URL selected. reason for this is to allow the existing scripts to be minimally edited. but, I am having second thoughts about having another 'special' exception to the script formats, so I might keep %MIRROR% in the script header, to match %SEARCH%, but then create another special true variable in the engine for @mirror.
hmmmmm....
Navigation
[0] Message Index
[#] Next page
Go to full version