optimisation: detect scan mode and avoid generating image
parent
50faf0b151
commit
a654a72fda
|
@ -32,6 +32,11 @@ sub preprocess (@) { #{{{
|
||||||
}
|
}
|
||||||
|
|
||||||
push @{$links{$params{page}}}, $image;
|
push @{$links{$params{page}}}, $image;
|
||||||
|
# optimisation: detect scan mode, and avoid generating the image
|
||||||
|
if (! defined wantarray) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
my $file = bestlink($params{page}, $image);
|
my $file = bestlink($params{page}, $image);
|
||||||
|
|
||||||
my $dir = $params{page};
|
my $dir = $params{page};
|
||||||
|
|
Loading…
Reference in New Issue