diff Ikariam.pm @ 147:7f9109a50679

trying to fixed report
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Sat, 01 Nov 2008 01:33:53 +0800
parents 00a21f73e906
children b23077d597b0
line wrap: on
line diff
--- 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;