=================================================================== RCS file: /cvs/openbsd/OpenBSDTorrents/ServerTorrents.pl,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- openbsd/OpenBSDTorrents/ServerTorrents.pl 2005/05/05 18:48:19 1.13 +++ openbsd/OpenBSDTorrents/ServerTorrents.pl 2005/05/05 21:33:42 1.14 @@ -1,5 +1,5 @@ #!/usr/bin/perl -T -#$Id: ServerTorrents.pl,v 1.13 2005/05/05 17:48:19 andrew Exp $ +#$Id: ServerTorrents.pl,v 1.14 2005/05/05 20:33:42 andrew Exp $ use strict; use warnings; use diagnostics; @@ -9,7 +9,7 @@ use lib 'lib'; use OpenBSDTorrents; -use BT::OBTMetaInfo; +use BT::MetaInfo::Cached; %ENV = (); @@ -117,7 +117,7 @@ print "Uploading $file\n"; my $t; - eval { $t = BT::OBTMetaInfo->new("$OBT->{DIR_TORRENT}/$file"); }; + eval { $t = BT::MetaInfo::Cached->new("$OBT->{DIR_TORRENT}/$file"); }; if ($@) { warn "Error reading torrent $file\n"; return undef;