summaryrefslogtreecommitdiffstats
path: root/wiki.pl
diff options
context:
space:
mode:
authorlookshe <mail@lookshe.org>2011-09-21 15:02:58 +0200
committerlookshe <mail@lookshe.org>2011-09-21 15:02:58 +0200
commit54ff27a51600bdbf850fd8c3093b4f117fffc678 (patch)
treee987bc115b820a4b6435bde3a2fe7129ba66b03a /wiki.pl
parent69c75288830e8e316f3c7db479fdacaf2e10b1b8 (diff)
changed detection of disambiguation
Diffstat (limited to 'wiki.pl')
-rw-r--r--wiki.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiki.pl b/wiki.pl
index 9f66204..b41a341 100644
--- a/wiki.pl
+++ b/wiki.pl
@@ -44,11 +44,11 @@ if ($url !~ m/Special:Search/) {
my $table = $res->{'table'};
my $isDis = 0;
- if ($$table[1] !~ m/$ARGV[0]/i && $#$table == 1) {
+ if ($#$table > 0) {
foreach (@$img) {
#print "$_\n";
# if ($_ =~ m/^http:\/\/upload\.wikimedia\.org\/wikipedia\/commons\/thumb\/.*\/.*\/Disambig/) {
- if ($_ =~ m/Disambig/) {
+ if ($_ =~ m/Disambig/i) {
$isDis = 1;
last;
}