Added years filter. Changed default DMCA to generic content e-mail.
This commit is contained in:
@@ -8,6 +8,7 @@ export async function curateMoviesQuery(query) {
|
||||
return {
|
||||
scope: query.scope || 'latest',
|
||||
query: query.q,
|
||||
years: query.years?.split(',')?.map((year) => Number(year)).filter(Boolean) || [],
|
||||
actorIds: [query.actorId, ...(query.actors?.split(',') || []).map((identifier) => parseActorIdentifier(identifier)?.id)].filter(Boolean),
|
||||
tagIds: await getIdsBySlug([query.tagSlug, ...(query.tags?.split(',') || [])], 'tags'),
|
||||
entityId: query.e ? await getIdsBySlug([query.e], 'entities').then(([id]) => id) : query.entityId,
|
||||
@@ -19,6 +20,7 @@ export async function curateMoviesQuery(query) {
|
||||
export async function fetchMoviesApi(req, res) {
|
||||
const {
|
||||
movies,
|
||||
aggYears,
|
||||
aggActors,
|
||||
aggTags,
|
||||
aggChannels,
|
||||
@@ -31,6 +33,7 @@ export async function fetchMoviesApi(req, res) {
|
||||
|
||||
res.send(stringify({
|
||||
movies,
|
||||
aggYears,
|
||||
aggActors,
|
||||
aggTags,
|
||||
aggChannels,
|
||||
|
||||
Reference in New Issue
Block a user