Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 2nd July 2012, 17:28
Simulator Simulator is offline
Member
 
Join Date: Jun 2012
P2P
Posts: 14
Default Make Torrent Private
Hi guys!

Is there any script where even if I upload a torrent with multi-trackers and dht enabled it removes trackers and dht and set my announce url?

Thanks.
Reply With Quote
  #2  
Old 2nd July 2012, 18:32
Black1 Black1 is offline
Senior Member
 
Join Date: Oct 2011
P2P
Posts: 55
Default hello
Go
Tracker Settings > Main Settings > Active External Scrape? (Set to Disable)
Reply With Quote
  #3  
Old 2nd July 2012, 18:46
Simulator Simulator is offline
Member
 
Join Date: Jun 2012
P2P
Posts: 14
Default
But it doesn't allow to upload torrents with active dht and more trackers. But here's the solution:

Find:
PHP Code:
 if (($privatetrackerpatch == 'yes' AND !$external))
  {
    if (((isset (
$dict['value']['announce-list']) OR isset ($dict['value']['nodes'])) OR (isset ($dict['value']['azureus_properties']['value']['dht_backup_enable']) AND $dict['value']['azureus_properties']['value']['dht_backup_enable']['value'] != 0)))
    {
      
bark ($lang->upload['dhterror']);
    }
  } 
Replace:
PHP Code:
if (((isset ($dict['value']['announce-list']) OR isset ($dict['value']['nodes'])) OR (isset ($dict['value']['azureus_properties']['value']['dht_backup_enable']) AND $dict['value']['azureus_properties']['value']['dht_backup_enable']['value'] != 0)))
    {
$dict['value']['info']['value']['private']=bdec('i1e');  // add private tracker flag
unset($dict['value']['announce-list']); // remove multi-tracker capability
unset($dict['value']['nodes']); // remove cached peers (Bitcomet & Azareus)
unset($dict['value']['info']['value']['crc32']); // remove crc32
unset($dict['value']['info']['value']['ed2k']); // remove ed2k
unset($dict['value']['info']['value']['md5sum']); // remove md5sum
unset($dict['value']['info']['value']['sha1']); // remove sha1
unset($dict['value']['info']['value']['tiger']); // remove tiger
unset($dict['value']['azureus_properties']); // remove azureus properties
$dict=bdec(benc($dict)); // double up on the becoding solves the occassional misgenerated infohash
$dict['value']['comment']=bdec(benc_str"Tracker NAME")); // change torrent comment
$dict['value']['created by']=bdec(benc_str"$CURUSER[username]")); // change created by
$dict['value']['publisher']=bdec(benc_str"$CURUSER[username]")); // change publisher
$dict['value']['publisher.utf-8']=bdec(benc_str"$CURUSER[username]")); // change publisher.utf-8
$dict['value']['publisher-url']=bdec(benc_str"$BASEURL/userdetails.php?id=$CURUSER[id]")); // change publisher-url
$dict['value']['publisher-url.utf-8']=bdec(benc_str"$BASEURL/userdetails.php?id=$CURUSER[id]")); // change publisher-url.utf-8
list($ann$info) = dict_check($dict"announce(string):info");

    } 
And it's not displays any error anymore. Just uploading your multi-tracker torrent file with dht and removing them, by replacing with your announce url and setting it private.
Reply With Quote
The Following 2 Users Say Thank You to Simulator For This Useful Post:
aMiGo1972 (24th December 2012), Marco (15th July 2012)
  #4  
Old 14th December 2012, 00:04
aMiGo1972's Avatar
aMiGo1972 aMiGo1972 is offline
Senior Member
 
Join Date: Oct 2008
Israel
Posts: 39
Default
wich file is this?

Bump: its working... will be very nice if there is a possibility to just leave the DHT enable.. the question is what line to remove there
__________________
http://amigo.no-ip.org
Reply With Quote
Reply

Tags
make , private , torrent


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



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