# HG changeset patch # User "Rex Tsai " # Date 1225474433 -28800 # Node ID 7f9109a50679a1036e84e2df210e71a9f225fea0 # Parent 00a21f73e9063acd75044c5386c4ec90a9206e9f trying to fixed report diff -r 00a21f73e906 -r 7f9109a50679 Ikariam.pm --- a/Ikariam.pm Sat Nov 01 00:14:28 2008 +0800 +++ b/Ikariam.pm Sat Nov 01 01:33:53 2008 +0800 @@ -577,10 +577,10 @@ $report{defender} = $extractor->find('//div[@id="troopsReport"]//table[@id="result"]//th[@class="defenders"]'); $report{winner} = $extractor->find('//div[@id="troopsReport"]//table[@id="result"]//td[@class="winner"]'); - # $report{targetCity} = $extractor->find('//div[@id="troopsReport"]/div/h3/a/text()'); - # 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'); + $report{targetCity} = $extractor->find('//div[@id="troopsReport"]/div/h3/a/text()'); + 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;