Filtering out 'Amateur' model in Model Media API.
This commit is contained in:
@@ -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}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user