Added entity resolution prefer to entity options.

This commit is contained in:
DebaucheryLibrarian
2026-02-24 02:12:16 +01:00
parent d4e6082d2e
commit ba366df7a5
4 changed files with 14 additions and 7 deletions

View File

@@ -329,8 +329,7 @@ const validators = {
// profiler in this context is shorthand for profile scraper
async function init() {
// Pride Studios needs prefer network, probably works bests for most Gamma sites. Establish which scrapers need channel and why.
const entitiesBySlug = await fetchEntitiesBySlug(Object.keys(actorScrapers), { types: ['channel', 'network', 'info'], prefer: 'network' });
const entitiesBySlug = await fetchEntitiesBySlug(Object.keys(actorScrapers), { types: ['channel', 'network', 'info'], prefer: 'options' });
await Object.entries(actorScrapers).reduce(async (chain, [entitySlug, scraper]) => {
await chain;
@@ -340,7 +339,6 @@ async function init() {
const tests = actors.filter((actor) => actor.entity === entitySlug);
// TODO: remove when all tests are written
if (tests.length === 0) {
console.log('TODO', entitySlug);
return;