Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   Make Torrent Private (http://www.bvlist.com/showthread.php?t=8101)

Simulator 2nd July 2012 17:28

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.

Black1 2nd July 2012 18:32

hello
 
Go
Tracker Settings > Main Settings > Active External Scrape? (Set to Disable)

Simulator 2nd July 2012 18:46

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.

aMiGo1972 14th December 2012 00:04

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 :muscle:


All times are GMT +2. The time now is 22:30.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.