=================================================================== RCS file: /cvs/openbsd/OpenBSDTorrents/CurrentTorrents.pl,v retrieving revision 1.6 retrieving revision 1.8 diff -u -r1.6 -r1.8 --- openbsd/OpenBSDTorrents/CurrentTorrents.pl 2005/03/25 03:12:05 1.6 +++ openbsd/OpenBSDTorrents/CurrentTorrents.pl 2005/03/31 01:14:58 1.8 @@ -1,5 +1,5 @@ #!/usr/bin/perl -T -#$Id: CurrentTorrents.pl,v 1.6 2005/03/25 03:12:05 andrew Exp $ +#$Id: CurrentTorrents.pl,v 1.8 2005/03/31 01:14:58 andrew Exp $ use strict; use warnings; use diagnostics; @@ -7,7 +7,7 @@ use BT::MetaInfo; use Time::Local; -use lib 'lib'; +use lib '/usr/local/bin/OpenBSDTorrents/lib'; use OpenBSDTorrents; %ENV = (); @@ -28,9 +28,10 @@ my ($name, $year, $mon, $mday, $hour, $min) = /^(.*)-(\d{4})-(\d{2})-(\d{2})-(\d{2})(\d{2})/; + $mon--; my $epoch = timegm(0,$min,$hour,$mday,$mon,$year); - print "Adding $_\n"; + #print "Adding $_\n"; $files{$name}{$epoch} = { file => $_, @@ -65,12 +66,12 @@ my ($path) = $t->{comment} =~ /Files from ([^\n]+)\n/s; unless (-d "$BaseDir/$path") { - print "Deleting $files{$name}{$epoch}{file} the path doesn't exist.\n"; + #print "Deleting $files{$name}{$epoch}{file} the path doesn't exist.\n"; push @delete, $files{$name}{$epoch}{file}; } if (keys %{ $files{$name} } == 1) { - print "Skipping torrent for $name there is only one.\n"; + #print "Skipping torrent for $name there is only one.\n"; next; }