Mercurial > eagle-eye
diff Ikariam.pm @ 148:b23077d597b0
fixed.
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Sat, 01 Nov 2008 01:34:39 +0800 |
parents | 7f9109a50679 aad08889ddb3 |
children | fab1593cadf1 |
line wrap: on
line diff
--- a/Ikariam.pm Sat Nov 01 01:33:53 2008 +0800 +++ b/Ikariam.pm Sat Nov 01 01:34:39 2008 +0800 @@ -581,6 +581,7 @@ my $href = $extractor->find('//div[@id="troopsReport"]/div/h3/a/@href'); # $report{targetCity} = $extractor->find('//td[@class="battle"]/a/text()'); # my $href = $extractor->find('//td[@class="battle"]/a/@href'); + if($href =~ /index\.php\?view=island&id=(\d+)&selectCity=(\d+)/) { $report{island} = $1; $report{city} = $2;