Separated some Naughty America channels into Naughty America VR.

This commit is contained in:
DebaucheryLibrarian
2026-01-23 01:55:37 +01:00
parent 83b5a5f8ba
commit f4300d8dfb
4 changed files with 150 additions and 136 deletions

View File

@@ -59,6 +59,13 @@ async function fetchLatest(channel, page = 1, { parameters }) {
if (res.ok) {
const scenes = scrapeLatest(res.context, channel, parameters);
const vrScenes = scenes.filter((scene) => scene.tags.includes('VR'));
// console.log(scenes.length, vrScenes.length, scenes.length / vrScenes.length);
if (vrScenes.length / scenes.length > 0.6) {
console.log('VIRTUAL REALITY', channel.slug, channel.url);
}
return scenes;
}

View File

@@ -105,7 +105,7 @@ function scrapeProfile({ query }, url, entity) {
profile.avatar = query.img('.actor img, .avatar img');
profile.nationality = query.content(['.nationality, .nationnality', '//strong[contains(text(), "Nationnality")]'])?.replace(/nationn?ality\s*:/i, '').trim(); // sic
profile.scenes = scrapeAll(unprint.initAll(query.all('.videos .item, .list .scene.item')), entity, false);
profile.scenes = scrapeAll(unprint.initAll(query.all('.videos .item, .list .scene.item')), entity, false).scenes;
return profile;
}