Splitting Han titles and actors in Model Media scraper.

This commit is contained in:
DebaucheryLibrarian
2023-08-02 02:14:41 +02:00
parent 5783507344
commit 8c1f1b69ff
22 changed files with 80 additions and 10 deletions

View File

@@ -32,6 +32,7 @@ async function curateReleaseEntry(release, batchId, existingRelease, type = 'sce
const curatedRelease = {
title: decode(release.title),
alt_titles: release.altTitles?.map((title) => decode(title)),
entry_id: release.entryId || null,
entity_id: release.entity.id,
studio_id: release.studio?.id || null,
@@ -46,6 +47,8 @@ async function curateReleaseEntry(release, batchId, existingRelease, type = 'sce
updated_batch_id: batchId,
};
console.log(curatedRelease);
if (release.id) {
// release is updated
curatedRelease.id = release.id;