![]() |
New Scrape System for XbtitFM
1 Attachment(s)
Hey guys , i actually made this for my modified XbtitFM but i think i need to publish it to get feedbacks.
the scrape system in XbtitFM is not that great. it will try to fetch only one tracker at a time and if that particular tracker is offline / under heavy load , the script will either show error or return zero peers. The auto external update system or torrent peer auto update system in xbtitFM will not update peers if nobody visit the site or slow down the user who visit the site (To Update Peers Live) Now i will explain my script. Uses Scrapeer PHP library to fetch peers , know more at https://github.com/medariox/scrapeer No need to visit the site to perform auto updates , the cronjobs will do it. To make Auto scrape work will require root access. How to use it? 1. Copy the fp_mscrape.php , fp_ascrape.php , afscrape.php , scraper.php files to include folder in xbtitFM. 2. Edit details.php and make the following changes (find and replace the code.) : Code:
if (isset($_GET["act"]) && $_GET["act"]=="update") 3. Replace the function updatedata codes in functions.php (in include folder) to : Code:
//FP - Auto Update Info Hash Code:
*/6 * * * * /usr/bin/php7.2 /home/public_html/include/afscrape.php Example command explained : */6 * * * * means every 6 minute the auto scrape script will run (you can change it to any interval you want to auto update) /usr/bin/php7.2 is the location of php7.2 /home/public_html/include/afscrape.php - location of the auto scrape trigger file (you can also rename this script file name to anything to avoid execution from browsers) 5. Check the site logs in admin panel to check the system Like : Guest SUCCESS auto update of torrent infohash: 0000000000000000000000 with s:0 and l:0 reply here if you face any problem. Bump: post your comments here about the bug / any problem you are facing to use this new system |
Looks good - will test latr - outside right now...
|
yh
:cool:
|
if you found any bug / have any suggesion , please report here , so i can update it.
|
i havent tested yet but if i find bugs ill write here :)
|
i want multiple reports to make sure it works fine.
|
Can you do it in an archive hack for a clean system installation hack?
|
i didn't understand, please explain
|
Make it a hack and not install it manually
|
Quote:
|
All times are GMT +2. The time now is 02:47. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.