forked from DebaucheryLibrarian/traxxx
Refactoring deep scrape. Added tag posters.
This commit is contained in:
@@ -95,7 +95,7 @@ async function scrapeScene(html, url, site) {
|
||||
release.movie = $('a[data-track="FULL MOVIE"]').attr('href');
|
||||
|
||||
const siteElement = $('.content-wrapper .logos-sites a');
|
||||
if (siteElement) release.channel = slugify(siteElement.text(), { delimiter: '' });
|
||||
if (siteElement) release.channel = slugify(siteElement.text(), '');
|
||||
|
||||
return release;
|
||||
}
|
||||
@@ -108,7 +108,7 @@ function scrapeProfile({ html, q, qa, qtx }) {
|
||||
const trimmedValue = value.trim();
|
||||
|
||||
if (trimmedValue.length === 0 || trimmedValue === '-') return acc;
|
||||
return { ...acc, [slugify(key, { delimiter: '_' })]: trimmedValue };
|
||||
return { ...acc, [slugify(key, '_')]: trimmedValue };
|
||||
}, {});
|
||||
|
||||
const description = q('.model-facts-long', true);
|
||||
@@ -176,7 +176,7 @@ async function fetchScene(url, site) {
|
||||
}
|
||||
|
||||
async function fetchProfile(actorName) {
|
||||
const actorSearchSlug = slugify(actorName, { delimiter: '+' });
|
||||
const actorSearchSlug = slugify(actorName, '+');
|
||||
const url = `https://www.private.com/search.php?query=${actorSearchSlug}`;
|
||||
const modelRes = await geta(url, '.model h3 a');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user