Added movies to manticore migrations and update.

This commit is contained in:
DebaucheryLibrarian
2024-03-25 02:08:54 +01:00
parent 27ef621f75
commit 00f59b3743
4 changed files with 16 additions and 3 deletions

View File

@@ -83,6 +83,7 @@ async function init() {
network_id int,
network_name text,
network_slug text,
entity_ids multi,
actor_ids multi,
actors text,
tag_ids multi,
@@ -120,6 +121,7 @@ async function init() {
network_id: movie.network_id || undefined,
network_slug: movie.network_slug || undefined,
network_name: movie.network_name || undefined,
entity_ids: [movie.channel_id, movie.network_id].filter(Boolean), // manticore does not support OR, this allows IN
actor_ids: movie.actors.map((actor) => actor.f1),
actors: movie.actors.map((actor) => actor.f2).join(),
tag_ids: movie.tags.map((tag) => tag.f1),