]> git.sesse.net Git - pr0n/commitdiff
Improve flash/no flash detection.
authorSteinar H. Gunderson <sesse@debian.org>
Sun, 30 Jul 2006 14:12:05 +0000 (16:12 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Sun, 30 Jul 2006 14:12:05 +0000 (16:12 +0200)
perl/Sesse/pr0n/Common.pm

index d03f46f1f01a01a10b656bb0efeb53aeb1adfb6e..c6f1c5b59fb87b89c375cde62b3967178dbe4ed8 100644 (file)
@@ -438,9 +438,11 @@ sub make_infobox {
        }
 
        if (defined($info->{'Flash'})) {
        }
 
        if (defined($info->{'Flash'})) {
-               if ($info->{'Flash'} =~ /did not fire/ || $info->{'Flash'} =~ /No Flash/) {
+               if ($info->{'Flash'} =~ /did not fire/i ||
+                   $info->{'Flash'} =~ /no flash/i ||
+                   $info->{'Flash'} =~ /not fired/i)  {
                        push @lines, "No flash";
                        push @lines, "No flash";
-               } elsif ($info->{'Flash'} =~ /fired/) {
+               } elsif ($info->{'Flash'} =~ /fired/i) {
                        push @lines, "Flash";
                } else {
                        push @lines, $info->{'Flash'};
                        push @lines, "Flash";
                } else {
                        push @lines, $info->{'Flash'};