From 8b27e01693c853dc69cfdbfa9ffc9728b1b0d41e Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 22 Oct 2021 07:35:57 +0200 Subject: Exclude crossdressing --- src/config.ts | 1 + src/services/jobs.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index ac6fe98..e0bd0e1 100644 --- a/src/config.ts +++ b/src/config.ts @@ -23,6 +23,7 @@ const mainQuery: GetPostQuery = { "-hyper", "-lips", "-dress", + "-crossdressing", "-mouth_shot", "-animated", "-transformation", diff --git a/src/services/jobs.ts b/src/services/jobs.ts index 878593b..5ecae66 100644 --- a/src/services/jobs.ts +++ b/src/services/jobs.ts @@ -38,7 +38,7 @@ async function handlePost(post: e621.Post) { const width = dims.width ?? 0; const height = dims.height ?? 0; - if (Buffer.byteLength(file) > 1024 * 1024 * 9 || width > 2000 || height > 2000) { + if (Buffer.byteLength(file) > 1024 * 1024 * 9 || width > 2000 || height > 2000) { console.log(`Compressing...`); file = await Sharp(file) -- cgit v1.2.3-70-g09d2