"serph, post: 67014, member: 1398":
its working on my main tracker whats the annonce url your trying to scrape ?
can someone else try this script before i start debugging it all just to make sure it isnt an issue at shadows end
$TorrentInfo = ParseTorrent("$site_config[torrent_dir]/$rowu[id].torrent"); // Takes results from /backend/parse.php - BAD
$ann = $TorrentInfo[0]; // Takes announces from /backend/parse.php - BAD
$annlist = array(); // Takes announce array from /backend/parse.php - BAD
if ($TorrentInfo[6]) { // Takes results from /backend/parse.php - BAD
foreach ($TorrentInfo[6] as $ann) {
$annlist[] = $ann[0]; // Takes announces from /backend/parse.php - BAD }
} else
$annlist = array(
$ann);
$seeders = $leechers = $downloaded = null;
foreach ($annlist as $ann) {
$tracker = explode("/", $ann);
$path = array_pop($tracker);
$oldpath = $path;
$path = str_replace("announce", "scrape", $path);
$tracker = implode("/", $tracker) . "/" . $path;
if ($oldpath == $path) {
continue; if ($stats['seeds'] != -1) {
$seeders += $stats['seeds'];
$leechers += $stats['peers'];
$downloaded += $stats['downloaded'];if (scrape['seeders'] != -1) {
$seeders += $scrape['seeders'];
$leechers += $scrape['leechers'];
$downloaded += $scrape['completed'];<?php
include "backend/udptscraper.php";
try{
$timeout = 2;
$scraper = new udptscraper($timeout);
$ret = $scraper->scrape('udp://tracker.leechers-paradise.org:6969',array('B3D90865B2C831802CEC740933043EF50A2B6313'));
print_r($ret);
}catch(ScraperException $e){
echo('Error: ' . $e->getMessage() . "<br />\n");
echo('Connection error: ' . ($e->isConnectionError() ? 'yes' : 'no') . "<br />\n");
}Array ( [B3D90865B2C831802CEC740933043EF50A2B6313] => Array ( [seeders] => 59 [completed] => 435 [leechers] => 3 [infohash] => B3D90865B2C831802CEC740933043EF50A2B6313 ) ) $TorrentInfo = ParseTorrent("$site_config[torrent_dir]/$rowu[id].torrent");
$ann = $TorrentInfo[0];
$annlist = array();"m-jay, post: 66981, member: 20288":
No I tried a few times but couldn't get it working, spent most of weekend working on moving the backend, might try replacing account.php with original to see if I can get it to work
"m-jay, post: 66964, member: 20288":
I see what you mean cant get it working, encrypt maybe effecting it, I'll try again today and post what I've tried
"m-jay, post: 66962, member: 20288":
Where and what have you tried m8 for account it would be just under this line
$email = $_POST["email"];
For account details I think it might be admin-modtasks
"serph, post: 66952, member: 1398":
the old scraper looked like this in torrent-details.php
if ($row["external"]=='yes'){
if ($scrape =='1'){
print("<td valign='top' align='right'><b>Tracked: </b>EXTERNAL<br /><br />");
$seeders1 = $leechers1 = $downloaded1 = null;
$tres = SQL_Query_exec("SELECT url FROM announce WHERE torrent=$id");
while ($trow = mysql_fetch_array($tres)) {
$ann = $trow["url"];
$tracker = explode("/", $ann);
$path = array_pop($tracker);
$oldpath = $path;
$path = preg_replace("/^announce/", "scrape", $path);
$tracker = implode("/", $tracker)."/".$path;
if ($oldpath == $path) {
continue; // Scrape not supported, ignored
}
// TPB's tracker is dead. Use openbittorrent instead
if (preg_match("/thepiratebay.org/i", $tracker) || preg_match("/prq.to/", $tracker)) {
$tracker = "http://tracker.openbittorrent.com/scrape";
}
$stats = torrent_scrape_url($tracker, $row["info_hash"]);
if ($stats['seeds'] != -1) {
$seeders1 += $stats['seeds'];
$leechers1 += $stats['peers'];
$downloaded1 += $stats['downloaded'];
SQL_Query_exec("UPDATE `announce` SET `online` = 'yes', `seeders` = $stats[seeds], `leechers` = $stats[peers], `times_completed` = $stats[downloaded] WHERE `url` = ".sqlesc($ann)." AND `torrent` = $id");
} else {
SQL_Query_exec("UPDATE `announce` SET `online` = 'no' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $id");
}
}
if ($seeders1 !== null){ //only update stats if data is received
print ("<b>".T_("LIVE_STATS").": </b><br />");
print ("Seeders: ".number_format($seeders1)."<br />");
print ("Leechers: ".number_format($leechers1)."<br />");
print (T_("COMPLETED").": ".number_format($downloaded1)."<br />");
SQL_Query_exec("UPDATE torrents SET leechers='".$leechers1."', seeders='".$seeders1."', times_completed='".$downloaded1."',last_action= '".get_date_time()."',visible='yes' WHERE id='".$row['id']."'");
}else{
print ("<b>".T_("LIVE_STATS").": </b><br />");
print ("<font color='#ff0000'>Tracker Timeout<br />Please retry later</font><br />");
}
print ("<form action='torrents-details.php?id=$id&scrape=1' method='post'><input type=\"submit\" name=\"submit\" value=\"Update Stats\" /></form></td>");
}else{
print ("<td valign='top' align='right'><b>Tracked:</b> EXTERNAL<br /><br /><form action='torrents-details.php?id=$id&scrape=1' method='post'><input type=\"submit\" name=\"submit\" value=\"Update Stats\" /></form></td>");
}
}
echo "</tr></table>";
}
echo "</div></td></tr></table></center><br /><br />";
"serph, post: 66950, member: 1398":
I'll take a look at the old way it was done I'm sure the stats we're split as the backup announce trackers got $stats[seeds] and the torrent was updated with $seeders1 or something
"serph, post: 66944, member: 1398":
[USER=20311]@shadows[/USER] i put that in the description and i get this (btw i like the pun lol )
[ATTACH]5111[/ATTACH]
still no error just posts it
"spiritblue, post: 66942, member: 401":
no, considering the tag is already defined i do not have to do the other two
// [align=?]Text[/align]
$s = preg_replace("#\[align=(left|center|right|justify)\](.*?)\[/align\]#si ", "<div style=\"text-align: $1;\">$2</div>", $s);