Fixed comment field not updated. Refactored Nubiles scraper.

This commit is contained in:
DebaucheryLibrarian
2025-10-06 03:26:17 +02:00
parent e13c8ccfe0
commit 19c892ab13
7 changed files with 217 additions and 88 deletions

View File

@@ -437,10 +437,11 @@ async function storeScenes(releases, useBatchId) {
title = COALESCE(new.title, releases.title),
description = COALESCE(new.description, releases.description),
duration = COALESCE(new.duration, releases.duration),
comment = COALESCE(new.comment, releases.comment),
deep = new.url IS NOT NULL,
updated_at = NOW()
FROM json_to_recordset(:scenes)
AS new(id int, url text, date timestamptz, entity json, title text, description text, duration integer, deep boolean)
AS new(id int, url text, date timestamptz, entity json, title text, description text, duration integer, comment text, deep boolean)
WHERE releases.id = new.id
`, {
scenes: JSON.stringify(curatedDuplicateReleases),