Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   [FIX] Real Working Scrape for TSSE 5.4 - 5.6 (http://www.bvlist.com/showthread.php?t=5140)

Conjo 28th June 2010 23:26

[FIX] Real Working Scrape for TSSE 5.4 - 5.6
 
Finally i made a really working scrape for TSSE..

I tested it on TSSE 5.4.1 but it should work on 5.6 also..

Have fun& cheers..:drink:

PHP Code:

<?php

//ts scrape fixed by Conjo for TS 5.4/5.6 28/06/2010

ini_set('zlib.output_compression_level'3);

function 
fast_db_connect ()
  {
    
$dbfile './config/DATABASE';
    if (!
file_exists ($dbfile))
    {
      exit (
'DATABASE Configuration file does not exists');
      return 
null;
    }

    
$data unserialize (@file_get_contents ($dbfile));
    if (!(
$connect mysql_connect ($data['mysql_host'], $data['mysql_user'], $data['mysql_pass'])))
    {
      exit (
'Error: Mysql Connection!');
      ;
    }

    if (!(
mysql_select_db ($data['mysql_db'], $connect)))
    {
      exit (
'Error: Mysql DB Selection!');
      ;
    }

    unset (
$data);
  }

  
    
  
fast_db_connect();

function 
sqlesc($x) {
    return 
"'".mysql_real_escape_string($x)."'";
}


$info_hash $_GET['info_hash'];
if(
strlen($info_hash) != 20)
{
  
$info_hash stripslashes(urldecode($info_hash));
}
if (
strlen($info_hash) != 20)
{
    
exit (
'Error: Invalid hash!');

}
else
{
    
$query "SELECT info_hash, times_completed, seeders, leechers FROM torrents WHERE info_hash = \"" mysql_real_escape_string($info_hash).'"';
}

$r 'd5:filesd';
$res mysql_query($query);

while (
$row = @mysql_fetch_assoc($res)) {
    
$r .= "20:" str_pad($row["info_hash"], 20) . "d" .
        
'8:completei' $row["seeders"] . "e" .
        
'10:downloadedi' $row["times_completed"] . "e" .
        
'10:incompletei' $row["leechers"] . "e" .
        
"e";
}

$r .= "ee";
header("Content-Type: text/plain");
echo(
$r);


?>


Nightcrawler 1st July 2010 23:17

You didn't make that i did and all u have added is zlib compression at the top and changed to your name btw that wont work on all servers.

Conjo 5th July 2010 09:03

You made it?
 
Quote:

Originally Posted by Nightcrawler (Post 23880)
You didn't make that i did and all u have added is zlib compression at the top and changed to your name btw that wont work on all servers.


Yeah, I used the database connection part of your fixed scrape but the rest is not really the same..
Have a good look at it if you think so..

I don't know if it dosn't work on all servers but on my v-dedicat.. from GoDaddy it runs fine..

But ok if you like to use your own just change it so it gets the hash in binary and not in numeric format.. Thats all.

/Cheers

joeroberts 5th July 2010 14:57

another thing is that scrape only handles single torrent scrape not Multy torrents or Open scrape (wich I dont like them any way as they are realy uncalled for)

Conjo 5th July 2010 23:04

Quote:

Originally Posted by joeroberts (Post 23955)
another thing is that scrape only handles single torrent scrape not Multy torrents or Open scrape (wich I dont like them any way as they are realy uncalled for)

Thats richt joe but this is the internal scrape..

external scrape is handeled by include/ts_external_scrape..

Ruffneck 28th August 2010 00:21

benc.php for TS 5.6 !
 
pls help !

i am searching for working benc.php for TS 5.6

hawaii22 8th September 2010 20:45

1 Attachment(s)
Quote:

Originally Posted by Ruffneck (Post 24194)
pls help !

i am searching for working benc.php for TS 5.6


here you have one

Ruffneck 8th September 2010 21:08

Quote:

Originally Posted by hawaii22 (Post 24409)
here you have one


Thank U MEN !

God Bless U ! :ok:

turktiger 15th January 2011 19:10

hey
 
Sorry i am new on tsse what is scrabe ? what is does ?

Conjo 28th January 2011 22:57

It shows current seeders,leechers,times snatched in your torrent client.


All times are GMT +2. The time now is 22:38.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.