From: Don Armstrong Date: Wed, 4 Nov 2009 00:03:31 +0000 (+0000) Subject: * mm_get needs $m X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3cba1dd3f0ba799b128a064cf4cad5ffd62b189d;p=bin.git * mm_get needs $m --- diff --git a/get_one_manga b/get_one_manga index 6920c04..cc0cbd0 100755 --- a/get_one_manga +++ b/get_one_manga @@ -92,7 +92,7 @@ my $failure = 0; my $m = WWW::Mechanize->new(); for my $manga (@manga_to_get) { # see if the manga exists - mm_get($options{onemanga}.'/'.$manga); + mm_get($m,$options{onemanga}.'/'.$manga); if ($m->status() != 200) { print STDERR "Manga $manga doesn't exist\n"; $failure ||= 1; @@ -137,7 +137,7 @@ sub mm_get{ $return = $m->get($url); }; } while ($@ and - $rerun-- > 0 and sleep 5); + ($rerun-- > 0) and sleep 5); return $return; }