Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
  #1  
Old 28th June 2010, 23:26
Conjo's Avatar
Conjo Conjo is offline
Senior Member
 
Join Date: Mar 2009
P2P
Posts: 30
Default [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..

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);


?>
Reply With Quote
The Following 5 Users Say Thank You to Conjo For This Useful Post:
aMiGo1972 (29th June 2010), DrNet (29th June 2010), gram (29th August 2010), hegylako (18th March 2012), Marco (17th December 2014)
  #2  
Old 1st July 2010, 23:17
Nightcrawler's Avatar
Nightcrawler Nightcrawler is offline
Senior Member
 
Join Date: Oct 2009
P2P
Posts: 97
Thumbs down
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.
Reply With Quote
  #3  
Old 5th July 2010, 09:03
Conjo's Avatar
Conjo Conjo is offline
Senior Member
 
Join Date: Mar 2009
P2P
Posts: 30
Default You made it?
Quote:
Originally Posted by Nightcrawler View Post
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
Reply With Quote
  #4  
Old 5th July 2010, 14:57
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
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)
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #5  
Old 5th July 2010, 23:04
Conjo's Avatar
Conjo Conjo is offline
Senior Member
 
Join Date: Mar 2009
P2P
Posts: 30
Default
Quote:
Originally Posted by joeroberts View Post
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..
Reply With Quote
  #6  
Old 28th August 2010, 00:21
Ruffneck's Avatar
Ruffneck Ruffneck is offline
Senior Member
 
Join Date: Feb 2008
Posts: 70
Default benc.php for TS 5.6 !
pls help !

i am searching for working benc.php for TS 5.6
Reply With Quote
  #7  
Old 8th September 2010, 20:45
hawaii22's Avatar
hawaii22 hawaii22 is offline
Senior Member
 
Join Date: Mar 2008
Posts: 24
Default
Quote:
Originally Posted by Ruffneck View Post
pls help !

i am searching for working benc.php for TS 5.6

here you have one
Attached Files
File Type: php benc.php (7.7 KB, 239 views)
Reply With Quote
The Following 2 Users Say Thank You to hawaii22 For This Useful Post:
Barbarito (16th April 2020), David244us (12th August 2012)
  #8  
Old 8th September 2010, 21:08
Ruffneck's Avatar
Ruffneck Ruffneck is offline
Senior Member
 
Join Date: Feb 2008
Posts: 70
Default
Quote:
Originally Posted by hawaii22 View Post
here you have one

Thank U MEN !

God Bless U !
Reply With Quote
  #9  
Old 15th January 2011, 19:10
turktiger's Avatar
turktiger turktiger is offline
Senior Member
 
Join Date: Jan 2011
Turkey
Posts: 20
Default hey
Sorry i am new on tsse what is scrabe ? what is does ?
Reply With Quote
  #10  
Old 28th January 2011, 22:57
Conjo's Avatar
Conjo Conjo is offline
Senior Member
 
Join Date: Mar 2009
P2P
Posts: 30
Default
It shows current seeders,leechers,times snatched in your torrent client.
Reply With Quote
Reply

Tags
54 , 56 , fix , real , scrape , tsse , working

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FIX] TSSE Upload and Scrape Keiichi Template Shares 23 12th August 2012 22:32
offline mod not working on tsse v4.3 nulled etc wMan Template Shares 0 3rd August 2009 00:07
BBcode not working -tsse 5.6 Lazarevics Template Shares 4 8th June 2009 23:28
got 5.6 full working bawls Template Shares 11 11th May 2009 12:39
Torrent scrape scpirt HelixiR Community Cafe 1 20th December 2008 20:36



All times are GMT +2. The time now is 11:07. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.