Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   some problem with big torrents (http://www.bvlist.com/showthread.php?t=8378)

Falconbeer 17th October 2012 21:34

some problem with big torrents
 
hi
i use a older tbdev from 2005 or so and when someone upload a bigger pack and they try to dl it they only get invalide torrentfile, dont know how big torrents it must be to get this error but the last one was 263gb moviepack and its impossible to download it, but iknow we have packs up to 200gb some, so is there a limit in the script i missed? i cant find anything :(

joeroberts 17th October 2012 23:22

Post your download.php

daffy 17th October 2012 23:39

Quote:

Originally Posted by Falconbeer (Post 36915)
hi
i use a older tbdev from 2005 or so and when someone upload a bigger pack and they try to dl it they only get invalide torrentfile, dont know how big torrents it must be to get this error but the last one was 263gb moviepack and its impossible to download it, but iknow we have packs up to 200gb some, so is there a limit in the script i missed? i cant find anything :(


im not being rude but im guessing your pretty active on your to be uploading packs that big and using a source from 2005, have you thought about updating?

Falconbeer 18th October 2012 11:57

hi
my download.php looks like this..
daffy it's to much work to change script and vi are only 2000 users on a private tracker.
Code:

require_once("include/bittorrent.php");
dbconn();
parked();
if ($CURUSER["downloadpos"] == 'no')
{
stdmsg("Tyvärr..", "Du kan inte ladda ner torrents! Hör med bryggan varför.");
stdfoot();
exit;
}
if (!preg_match(':^/(\d{1,10})/(.+)\.torrent$:', $_SERVER["PATH_INFO"], $matches))
httperr();
$id = 0 + $matches[1];
if (!$id)
httperr();
$res = mysql_query("SELECT name FROM torrents WHERE id = $id") or sqlerr(__FILE__, __LINE__);
$row = mysql_fetch_assoc($res);
$fn = "$torrent_dir/$id.torrent";
if (!$row || !is_file($fn) || !is_readable($fn))
httperr();
 
mysql_query("UPDATE torrents SET hits = hits + 1 WHERE id = $id");
require_once "include/benc.php";
 
 
if (strlen($CURUSER['passkey']) != 32) {
$CURUSER['passkey'] = md5($CURUSER['username'].get_date_time().$CURUSER['passhash']);
mysql_query("UPDATE users SET passkey='$CURUSER[passkey]' WHERE id=$CURUSER[id]");
}
 
 
$dict = bdec_file($fn, (1024*1024));
$dict['value']['announce']['value'] = $announce_urls[0]."?passkey=$CURUSER[passkey]";//"$DEFAULTBASEURL/announce.php/passkey=$CURUSER[passkey]";
$dict['value']['announce']['string'] = strlen($dict['value']['announce']['value']).":".$dict['value']['announce']['value'];
$dict['value']['announce']['strlen'] = strlen($dict['value']['announce']['string']);
// Remove multiple trackers from torrent
unset($dict['value']['announce-list']);
header("Content-Type: application/x-bittorrent");
print(benc($dict));
mysql_query("DELETE from bookmarks WHERE torrentid = $id AND userid = $CURUSER[id] LIMIT 1");
?>

Bump: no one? tbdev 120905 i think its called that i use, and like i say have no need to change script, mine have a lot of mods and translated so change is not an option for me..
so if any know if or where there is a limit so whare is it? upload the the torrent works good, but not download it :(


All times are GMT +2. The time now is 15:04.

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