X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2Fupdate-image-cache.pl;h=8a19841edf2e8307e6146efc74fa28fc99c2c0aa;hp=a159e3747454f939fc9361f69c2d46692aa5ceb5;hb=acc5b53241d0e971595d6017c60f54a6bc057c41;hpb=ea1ebc654e8c7094e14337fcab673e3cdfad700a;ds=sidebyside diff --git a/perl/update-image-cache.pl b/perl/update-image-cache.pl index a159e37..8a19841 100755 --- a/perl/update-image-cache.pl +++ b/perl/update-image-cache.pl @@ -121,13 +121,13 @@ while (my $ref = $q->fetchrow_hashref) { next unless $any_old; unlink (@files); if (scalar @bothres > 0) { - Sesse::pr0n::Common::ensure_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, 'both', sort_res(@bothres)); + Sesse::pr0n::Common::ensure_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, 'both', 1, sort_res(@bothres)); } if (scalar @noboxres > 0) { - Sesse::pr0n::Common::ensure_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, 'nobox', sort_res(@noboxres)); + Sesse::pr0n::Common::ensure_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, 'nobox', 1, sort_res(@noboxres)); } if (scalar @boxres > 0) { - Sesse::pr0n::Common::ensure_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, 'box', sort_res(@boxres)); + Sesse::pr0n::Common::ensure_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, 'box', 1, sort_res(@boxres)); } my @newfiles = glob("../cache/$dir/$id-*.jpg");