version 1.14, 2005/05/05 22:45:03 |
version 1.20, 2006/07/24 19:03:53 |
|
|
#!/usr/bin/perl -T |
#!/usr/bin/perl |
#$Id$ |
# -T |
|
#$RedRiver: MakeTorrents.pl,v 1.19 2006/05/15 18:47:04 andrew Exp $ |
use strict; |
use strict; |
use warnings; |
use warnings; |
use diagnostics; |
use diagnostics; |
|
|
|
|
my $torrent_with_path = $OBT->{DIR_NEW_TORRENT} . "/$torrent"; |
my $torrent_with_path = $OBT->{DIR_NEW_TORRENT} . "/$torrent"; |
|
|
my $t = BT::MetaInfo::Cached->new(); |
my $t = BT::MetaInfo::Cached->new( |
|
{ |
|
cache_root => '/tmp/OBTFileCache' |
|
} |
|
); |
|
|
$t->name($name); |
$t->name($name); |
$t->announce($announce); |
$t->announce($announce); |
unless ($announce =~ m!^http://[^/]+/!i) { |
unless ($announce =~ m!^http://[^/]+/!i) { |