Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Scrape UDP Trackers
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

2019-01-04 15:33:41
All credits to original Authors

First, the torrents are scraped in torrents-details.php, is the first line in that the stats are updated with UDP trackers.
I tested this mod on a tracker with 12.000 of external torrents and after a while almost all these torrents have been updated by users.
You can also use mega_scrape.php but you need to set a cronjob to your server for this file. In this mode will work permanently.
If you run this file from your PC, you have to keep the browser open until this task is ready.

First of all extracts the attached arhive udpscraper.zip and upload all included files in your root.

In torrents-details.php under this line:
require_once("backend/BDecode.php");

Add these
require_once("backend/parse.php");
require_once("backend/udptscraper.php");


And somewhere below, replace the entire "scrape" code:
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_assoc($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&amp;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&amp;scrape=1' method='post'><input type="submit" name="submit" value="Update Stats" /></form></td>");
       }
   }

With this one
//===| Scrape External Torrents
   if ($row["external"]=='yes')
   {
       print ("<td width='160' align='right' valign='top'><table><tr>");
       if ($scrape =='1')
       {
           print("<td class='table_col1' width='150' valign='middle'>
           <div style='margin-top:5px; margin-bottom:10px; font:bold 16px Times' align='center'><font color='#FF2000'>".T_("EXTERNAL_TORRENT")."</font></div>");

           //===| UDP Scraper
           $resu = SQL_Query_exec("SELECT id, info_hash FROM torrents WHERE external = 'yes' AND id = $id");
           while ($rowu = mysql_fetch_array($resu))
           {
               $TorrentInfo = ParseTorrent("$site_config[torrent_dir]/$rowu[id].torrent");
               $ann = $TorrentInfo[0];
               $annlist = array();

               if ($TorrentInfo[6])
               {
                   foreach ($TorrentInfo[6] as $ann)
                   {
                       $annlist[] = $ann[0];
                   }
               }
               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 ($openbittorrent_done)
                       continue;

                   if (preg_match("/thepiratebay.org/i", $tracker) || preg_match("/prq.to/", $tracker))
                   {
                       $tracker = "http://tracker.openbittorrent.com/scrape";
                       $openbittorrent_done = 1;
                   }
                   if(preg_match('/udp:\/\//', $tracker))
                   {
                       $udp=true;
                       try
                       {
                           $timeout = 5;
                           $udp= new udptscraper($timeout);
                           $stats=$udp->scrape($tracker,$rowu["info_hash"]);
                           //print_r($stats); exit();
                           foreach ($stats as $idu=>$scrape)
                           {
                               $seeders += $scrape['seeders'];
                               $leechers += $scrape['leechers'];
                               $downloaded    += $scrape['completed'];
                           }
                       }
                       catch(ScraperException $e)
                       {
                           $e->isConnectionError();
                       }
                   }
                   else
                   {
                       $stats = torrent_scrape_url($tracker, $rowu["info_hash"]);
                   }

                   if ($stats['seeds'] != -1)
                   {
                       $seeders += $stats['seeds'];
                       $leechers += $stats['peers'];
                       $downloaded += $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` = $rowu[id]");
                   }
                   else
                   {
                       SQL_Query_exec("UPDATE `announce` SET `online` = 'no' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $rowu[id]");
                   }
               }

               if ($seeders !== null)
               {
                   SQL_Query_exec("UPDATE torrents SET leechers = '".$leechers."', seeders = '".$seeders."', times_completed = '".$downloaded."', last_action = '".get_date_time()."', visible = 'yes' WHERE id = '".$rowu['id']."'");
               }
               else
               {
                   SQL_Query_exec("UPDATE torrents SET last_action = '".get_date_time()."' WHERE id='".$rowu['id']."'");
               }
           }
           //===| End UDP Scraper
                 
           if ($seeders !== null)
           {
               print ("<div style='margin-bottom:5px; margin-left:20px'><b>".T_("LIVE_STATS")."</b>: </div>");
               print ("<div style='margin-left:20px'>".T_("SEEDERS").": <font color='limegreen'>".$seeders."</font></div>");
               print ("<div style='margin-left:20px'>".T_("LEECHERS").": <font color='#FF2000'>".$leechers."</font></div>");
               print ("<div style='margin-left:20px'>".T_("COMPLETED").": <font color='#0080FF'>".$downloaded."</font></div>");
           }
           else
           {
               print ("<div style='margin-top:10px; margin-bottom:5px' align='center'><b>".T_("LIVE_STATS")."</b>: </div>");
               print ("<div style='font:italic 14px Times' align='center'><font color='#FF2000'>".T_("TRACKERS_OFFLINE")."!</font></div>");
           }
           print ("<div style='margin-top:10px; margin-bottom:10px' align='center'>
               <a href='torrents-details.php?id=".$id."'><input type='submit' name='submit' value=".T_("SUBMIT")."></a>
           </div>");
           print ("</td>");
       }
       else
       {
           print ("<td class='table_col1' width='150' valign='middle' align='center'>
               <div style='margin-top:5px; margin-bottom:10px; font:bold 16px Times' align='center'><font color='#FF2000'>".T_("EXTERNAL_TORRENT")."</font></div>
               <div style='font:normal 12px Times' align='center'>".T_("UPDATE_STATS")."</div></div>
                   <form action='torrents-details.php?id=$id&amp;scrape=1' method='post'>
                       <div style='margin-top:5px; margin-bottom:10px' align='center'><input type='submit' name='submit' value=".T_("UPDATE")." /></div>
                   </form>
               </td>");
       }
       print ("</tr></table></td>");
   }
   //===| End Scrape External Torrents


Add to languages/english.php:
$LANG["UPDATE"] = "Update";
$LANG["EXTERNAL_TORRENT"] = "External Torrent";
$LANG["TRACKERS_OFFLINE"] = "All Trackers<br />are <b>Offline</b>";


And if you want to use mega_scrape.php manually, add this code wherever you want to see it:
echo "[<a href='mega_scrape.php'><b>Run Mega Scrape</b></a>]";
udpscraper.zip
Download
Unknown User
2019-05-05 11:17:33
scraping is working fine on tt3.0, but mega scraping is not for some reason for external torrents.
2019-05-05 14:19:29
does mega scrape work on ttv3? I never looked at it before. Can you link me to it?
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2019-05-05 14:25:22
"MicroMonkey, post: 66535, member: 311":

does mega scrape work on ttv3? I never looked at it before. Can you link me to it?

Mega scrape doesn't work from this post from "[url='https://www.torrenttrader.xyz/index.php?attachments/udpscraper-zip.34/']udpscraper.zip[/url]" archive. It just shows next refresh in 901 seconds and nothing works even if u refresh it.
2019-05-05 14:35:20
since I cant test this mod, I read the code and this needs changed
mega_scrape
while ($row = mysqli_fetch_array($res))

just change mysql_ to mysqli_
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2019-05-05 14:40:52
"MicroMonkey, post: 66540, member: 311":

since I cant test this mod, I read the code and this needs changed
mega_scrape
while ($row = mysqli_fetch_array($res))

just change mysql_ to mysqli_

It now work a bit more but SQL errors.

Database Error in mega_scrape.php on line 107: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' `leechers` = , `times_completed` = WHERE `url` = 'udp://tracker.leechers-parad' at line 1. Query was: UPDATE `announce` SET `online` = 'yes', `seeders` = , `leechers` = , `times_completed` = WHERE `url` = 'udp://tracker.leechers-paradise.org:6969/announce' AND `torrent` = 8.

EDIT: replaced seeders[seed], etc with just $seeders and it works, but it reloads stats only of the newest torrents now and only 1.
2019-05-12 14:33:12
try this mega-scrape
<?php
#=================================#
#  TorrentTrader v3.0 Mega-scrape #
#  Last changed by MicroMonkey    #
#=================================#

require_once("backend/functions.php");
require_once("backend/BDecode.php");
require_once("backend/parse.php");
require_once"backend/udptscraper.php";
dbconn(false);

   set_time_limit(0);
   $interval = 172800; //--| Rescrape torrents every 2 days
   $ts = gmtime() - $interval;
   $res = SQL_Query_exec("SELECT id, name, info_hash FROM torrents WHERE external = 'yes' AND last_action <= FROM_UNIXTIME($ts) ORDER BY last_action DESC LIMIT 1");
   $count = get_row_count("torrents", "WHERE external = 'yes' AND last_action <= FROM_UNIXTIME($ts)");

   while ($row = mysqli_fetch_array($res))
   {
       $TorrentInfo = ParseTorrent("$site_config[torrent_dir]/$row[id].torrent");
       $ann = $TorrentInfo[0];
       $annlist = array();
     
       if ($TorrentInfo[6])
       {
           foreach ($TorrentInfo[6] as $ann)
           {
               $annlist[] = $ann[0];
           }
       }
       else
           $annlist = array($ann);

       $seeders = $leechers = $downloaded = null;
     
       echo "<div style='margin-bottom:10px'><table cellpadding='5' border='1'><tr><td style='background-color:yellow'>
           <font color='darkviolet'><b>You must keep running this page until the operation is done and the next refresh will be announced.
           <br>Depending on the number of external torrents, this may take a very long time!</b></font>
       </td></tr></table></div>";
       echo "<b>Torrent ID: $row[id]</b> - <b>$row[name]</b><br><font color=blue><b>Info Hash: $row[info_hash]</b></font><br>";
     
       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)
           {
               echo "<br><b>$ann</b>: Scrape not supported.<br>";
               continue;
           }

           //--| TPB's tracker is dead. Use openbittorrent instead
           if ($openbittorrent_done)
               continue;

           if (preg_match("/thepiratebay.org/i", $tracker) || preg_match("/prq.to/", $tracker))
           {
               $tracker = "http://tracker.openbittorrent.com/scrape";
               $openbittorrent_done = 1;
           }

           if(preg_match('%udp://([^:/]*)(?::([0-9]*))?(?:/)?%si', $tracker))
           {
               $udp=true;
               try
               {
                   $timeout = 6;
                   $udp= new udptscraper($timeout);
                   $stats=$udp->scrape($tracker,$row["info_hash"]);
                   foreach ($stats as $id=>$scrape)
                   {
                       $seeders += $scrape['seeders'];
                       $leechers += $scrape['leechers'];
                       $downloaded    += $scrape['completed'];
                   }
               }
               catch(ScraperException $e)
               {
                   echo('<br><font color="red">Error: ' . $e->getMessage() . "\n");
                   echo('Connection error: ' . ($e->isConnectionError() ? 'yes' : 'no') . "</font><br>\n");
               }
           }
           else
           {
               $stats = torrent_scrape_url($tracker, $row["info_hash"]);
           }

           if ($stats['seeds'] != -1)
           {
               $seeders += $stats['seeds'];
               $leechers += $stats['peers'];
               $downloaded += $stats['downloaded'];
               echo "<br><b>$ann</b><br>";
               echo "Seeders: <font color='green'><b>".($udp?$scrape['seeders']:$stats["seeds"])."</b></font> &nbsp; | &nbsp; ";
               echo "Leechers: <font color='red'><b>".($udp?$scrape['leechers']:$stats["peers"])."</b></font> &nbsp; | &nbsp; ";
               echo "Completed: <font color='blue'><b>".($udp?$scrape['completed']:$stats["downloaded"])."</b></font><br>";
               SQL_Query_exec("UPDATE `announce` SET `online` = 'yes', `seeders` = $stats[seeds], `leechers` = $stats[peers], `times_completed` = $stats[downloaded] WHERE `url` = ".sqlesc($ann)." AND `torrent` = $row[id]");
           }
           else
           {
               echo "<br><b>$ann</b>: <font color=red>Tracker timed out.</font><br>";
               SQL_Query_exec("UPDATE `announce` SET `online` = 'no' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $row[id]");
           }
       }

       if ($seeders !== null)
       {
           echo "<br><b>Totals:</b><br>";
           echo "Seeders: <font color='green'><b>$seeders</b></font> &nbsp; | &nbsp; ";
           echo"Leechers: <font color='red'><b>$leechers</b></font> &nbsp; | &nbsp; ";
           echo "Completed: <font color='blue'><b>$downloaded</b></font><br><br>";
           SQL_Query_exec("UPDATE torrents SET leechers = '".$leechers."', seeders = '".$seeders."', times_completed = '".$downloaded."', last_action = '".get_date_time()."', visible = 'yes' WHERE id = '".$row['id']."'");
       }
       else
       {
           echo "<br><b><font color=red>All trackers are timed out.</font></b><br>";
           SQL_Query_exec("UPDATE torrents SET leechers = '0', seeders='0', last_action = '".get_date_time()."' WHERE id = '".$row['id']."'");
       }
   }
   ?>

   <script language="JavaScript">
       //--| Configure refresh interval (in seconds)
       <?php
       if ($count)
           echo "var countDownInterval = 6;";
       else
           echo "var countDownInterval = 600;"; // No torrents to scrape, refresh in 10 minutes
       ?>
       //--| Configure width of displayed text, in px (applicable only in NS4)
       var c_reloadwidth=200
   </script>

   <ilayer id="c_reload" width=&{c_reloadwidth}; ><layer id="c_reload2" width=&{c_reloadwidth}; left=0 top=0></layer></ilayer>

   <script>
       var countDownTime=countDownInterval+1;
       function countDown(){
           countDownTime--;
           if (countDownTime <=0){
               countDownTime=countDownInterval;
               clearTimeout(counter)
               window.location.reload()
               return
           }
           if (document.all) //if IE 4+
               document.all.countDownText.innerText = countDownTime+" ";
           else if (document.getElementById) //--| else if NS6+
               document.getElementById("countDownText").innerHTML=countDownTime+" "
           else if (document.layers){ //--| CHANGE TEXT BELOW TO YOUR OWN
               document.c_reload.document.c_reload2.document.write('Next <a href="java script:window.location.reload()">refresh</a> in <b id="countDownText">'+countDownTime+' </b> seconds')
               document.c_reload.document.c_reload2.document.close()
           }
           counter=setTimeout("countDown()", 1000);
       }

       function startit(){
           if (document.all||document.getElementById) //--| CHANGE TEXT BELOW TO YOUR OWN
           document.write('Next <a href="javascript:window.location.reload()">refresh</a> in <b id="countDownText">'+countDownTime+' </b> seconds')
           countDown()
       }

       if (document.all||document.getElementById)
           startit()
       else
           window.onload=startit
   </script>
<br><br>

scrape code in torrents-details
//===| Scrape External Torrents
   if ($row["external"]=='yes')
   {
       print ("<td width='160' align='right' valign='top'><table><tr>");
       if ($scrape =='1')
       {
           print("<td class='table_col1' width='150' valign='middle'>
           <div style='margin-top:5px; margin-bottom:10px; font:bold 16px Times' align='center'><font color='#FF2000'>".T_("EXTERNAL_TORRENT")."</font></div>");

           //===| UDP Scraper
           $resu = SQL_Query_exec("SELECT id, info_hash FROM torrents WHERE external = 'yes' AND id = $id");
           while ($rowu = mysqli_fetch_array($resu))
           {
               $TorrentInfo = ParseTorrent("$site_config[torrent_dir]/$rowu[id].torrent");
               $ann = $TorrentInfo[0];
               $annlist = array();

               if ($TorrentInfo[6])
               {
                   foreach ($TorrentInfo[6] as $ann)
                   {
                       $annlist[] = $ann[0];
                   }
               }
               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 ($openbittorrent_done)
                       continue;

                   if (preg_match("/thepiratebay.org/i", $tracker) || preg_match("/prq.to/", $tracker))
                   {
                       $tracker = "http://tracker.openbittorrent.com/scrape";
                       $openbittorrent_done = 1;
                   }
                   if(preg_match('/udp:\/\//', $tracker))
                   {
                       $udp=true;
                       try
                       {
                           $timeout = 5;
                           $udp= new udptscraper($timeout);
                           $stats=$udp->scrape($tracker,$rowu["info_hash"]);
                           //print_r($stats); exit();
                           foreach ($stats as $idu=>$scrape)
                           {
                               $seeders += $scrape['seeders'];
                               $leechers += $scrape['leechers'];
                               $downloaded    += $scrape['completed'];
                           }
                       }
                       catch(ScraperException $e)
                       {
                           $e->isConnectionError();
                       }
                   }
                   else
                   {
                       $stats = torrent_scrape_url($tracker, $rowu["info_hash"]);
                   }

                   if ($stats['seeds'] != -1)
                   {
                       $seeders += $stats['seeds'];
                       $leechers += $stats['peers'];
                       $downloaded += $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` = $rowu[id]");
                   }
                   else
                   {
                       SQL_Query_exec("UPDATE `announce` SET `online` = 'no' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $rowu[id]");
                   }
               }

               if ($seeders !== null)
               {
                   SQL_Query_exec("UPDATE torrents SET leechers = '".$leechers."', seeders = '".$seeders."', times_completed = '".$downloaded."', last_action = '".get_date_time()."', visible = 'yes' WHERE id = '".$rowu['id']."'");
               }
               else
               {
                   SQL_Query_exec("UPDATE torrents SET last_action = '".get_date_time()."' WHERE id='".$rowu['id']."'");
               }
           }
           //===| End UDP Scraper
                 
           if ($seeders !== null)
           {
               print ("<div style='margin-bottom:5px; margin-left:20px'><b>".T_("LIVE_STATS")."</b>: </div>");
               print ("<div style='margin-left:20px'>".T_("SEEDERS").": <font color='limegreen'>".$seeders."</font></div>");
               print ("<div style='margin-left:20px'>".T_("LEECHERS").": <font color='#FF2000'>".$leechers."</font></div>");
               print ("<div style='margin-left:20px'>".T_("COMPLETED").": <font color='#0080FF'>".$downloaded."</font></div>");
           }
           else
           {
               print ("<div style='margin-top:10px; margin-bottom:5px' align='center'><b>".T_("LIVE_STATS")."</b>: </div>");
               print ("<div style='font:italic 14px Times' align='center'><font color='#FF2000'>".T_("TRACKERS_OFFLINE")."!</font></div>");
           }
           print ("<div style='margin-top:10px; margin-bottom:10px' align='center'>
               <a href='torrents-details.php?id=".$id."'><input type='submit' name='submit' value=".T_("SUBMIT")."></a>
           </div>");
           print ("</td>");
       }
       else
       {
           print ("<td class='table_col1' width='150' valign='middle' align='center'>
               <div style='margin-top:5px; margin-bottom:10px; font:bold 16px Times' align='center'><font color='#FF2000'>".T_("EXTERNAL_TORRENT")."</font></div>
               <div style='font:normal 12px Times' align='center'>".T_("UPDATE_STATS")."</div></div>
                   <form action='torrents-details.php?id=$id&amp;scrape=1' method='post'>
                       <div style='margin-top:5px; margin-bottom:10px' align='center'><input type='submit' name='submit' value=".T_("UPDATE")." /></div>
                   </form>
               </td>");
       }
       print ("</tr></table></td>");
   }
   //===| End Scrape External Torrents

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2019-05-12 14:49:25
[USER=311]@MicroMonkey[/USER] Yeah it works, but can you also make changes for torrents-upload.php?
2019-05-12 14:57:28
not sure what you mean. What do you want changed?
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2019-05-12 15:16:32
This one https://www.torrenttrader.xyz/index.php?threads/bug-torrents-upload-needs-updating-with-external-scraping.9779/

It should use the same method as torrent-details does
Unknown User
2019-05-12 15:36:50
replace <? by <?php and <br />
Unknown User
2019-05-13 05:06:22
Database Error in mega_scrape.php on line 98: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' `leechers` = , `times_completed` = WHERE `url` = 'udp://zephir.monocul.us:6969' at line 1. Query was: UPDATE `announce` SET `online` = 'yes', `seeders` = , `leechers` = , `times_completed` = WHERE `url` = 'udp://zephir.monocul.us:6969/announce' AND `torrent` = 2.
Unknown User
2019-05-13 05:07:15
    {
               $seeders += $stats['seeds'];
               $leechers += $stats['peers'];
               $downloaded += $stats['downloaded'];
               echo "<br><b>$ann</b><br>";
               echo "Seeders: ".($udp?$scrape['$seeders']:$stats["$seeders"])."<br>";
               echo "Leechers: ".($udp?$scrape['leechers']:$stats["peers"])."<br>";
               echo "Downloaded: ".($udp?$scrape['completed']:$stats["downloaded"])."<br>";
               SQL_Query_exec("UPDATE `announce` SET `online` = 'yes', `seeders` = $stats[seeds], `leechers` = $stats[peers], `times_completed` = $stats[downloaded] WHERE `url` = ".sqlesc($ann)." AND `torrent` = $row[id]");
           }
           else
           {



My code
2019-05-13 19:38:04
missed a few sql_query_exec in mega-scrape in my post above. I edited it
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728