Added Vivid network. Added ASMR Fantasy to Adult Time. Storing deep URL in database. Added href to header links.

This commit is contained in:
2020-02-11 04:58:18 +01:00
parent 114e2e03b2
commit dd6a1d9bfd
44 changed files with 1322 additions and 35 deletions

View File

@@ -227,6 +227,7 @@ async function curateReleaseEntry(release) {
// dislikes: release.rating && release.rating.dislikes,
// rating: release.rating && release.rating.stars && Math.floor(release.rating.stars),
deep: typeof release.deep === 'boolean' ? release.deep : false,
deep_url: release.deepUrl,
};
return curatedRelease;
@@ -296,11 +297,16 @@ function accumulateActors(releases) {
name: actorName,
slug: actorSlug,
releaseIds: new Set(),
avatars: [],
};
}
if (actor.name) acc[actorSlug] = { ...acc[actorSlug], ...actor }; // actor input contains profile info
acc[actorSlug].releaseIds.add(release.id);
if (actor.name) acc[actorSlug] = { ...acc[actorSlug], ...actor }; // actor input contains profile info
if (actor.avatar) {
acc[actorSlug].avatars = acc[actorSlug].avatars.concat(actor.avatar);
}
});
return acc;