Filtering out 'Amateur' model in Model Media API.

This commit is contained in:
DebaucheryLibrarian
2026-02-06 06:02:59 +01:00
parent 7062f04e78
commit e8d6345400
4 changed files with 34 additions and 19 deletions

View File

@@ -30,7 +30,7 @@ function scrapeSceneApi(scene, channel, parameters) {
model.avatar,
model.avatar?.replace('_compressed', ''), // this is often a wider image, not just uncompressed
])).filter(Boolean),
}));
})).filter((actor) => actor.name?.toLowerCase() === 'amateur'); // generic name for various amateur models
release.tags = scene.tags?.map((tag) => tag.name);
@@ -131,6 +131,10 @@ function scrapeAll(scenes) {
function scrapeProfileApi(model, channel, parameters) {
const profile = {};
if (model.name?.toLowerCase() === 'amateur') {
return null; // generic profile for various amateur models
}
profile.entryId = model.id;
profile.url = `${channel.origin}${parameters.basePath || ''}/models/${model.id}`;