X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2Fupdate-image-cache.pl;h=f26ba99721a25224cc2664ddd8dca4ecfd78aa39;hp=213a7a0cb1ee6b14386161357762e699ad6b6318;hb=e39f752cca70404407db9cfadb743636e0f3cc1e;hpb=45ee05e19e1039e74e2b7ca4955b007d2cd3ed69 diff --git a/perl/update-image-cache.pl b/perl/update-image-cache.pl index 213a7a0..f26ba99 100755 --- a/perl/update-image-cache.pl +++ b/perl/update-image-cache.pl @@ -51,6 +51,8 @@ sub warn { sub error { print STDERR $_[1], "\n"; } +sub logger { +} package main; use Sesse::pr0n::Common; @@ -118,7 +120,7 @@ while (my $ref = $q->fetchrow_hashref) { next unless $any_old; unlink (@files); if (scalar @noboxres > 0) { - Sesse::pr0n::Common::ensure_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, 1, sort_res(@noboxres)); + Sesse::pr0n::Common::ensure_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, sort_res(@noboxres)); } if (scalar @boxres > 0) { Sesse::pr0n::Common::ensure_infobox_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, 1, sort_res(@boxres));