Separated some Naughty America channels into Naughty America VR.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user