forked from DebaucheryLibrarian/traxxx
Added Moms on Moms to Girlsway.
This commit is contained in:
@@ -59,8 +59,6 @@ function scrapePhotos(html) {
|
||||
async function getPhotos(albumPath, site) {
|
||||
const albumUrl = getAlbumUrl(albumPath, site);
|
||||
|
||||
console.log(albumUrl);
|
||||
|
||||
try {
|
||||
const html = await fetchPhotos(albumUrl);
|
||||
const $ = cheerio.load(html, { normalizeWhitespace: true });
|
||||
@@ -211,7 +209,7 @@ async function scrapeScene(html, url, site) {
|
||||
const rawTags = data?.keywords?.split(', ') || data2?.keywords?.split(', ');
|
||||
release.tags = hasTrans ? [...rawTags, 'transsexual'] : rawTags;
|
||||
|
||||
const channel = data?.productionCompany?.name || $('.studioLink a').attr('title')?.trim();
|
||||
const channel = data?.productionCompany?.name || $('.studioLink a, .siteLink a').attr('title')?.trim();
|
||||
if (channel) release.channel = slugify(channel, { delimiter: '' });
|
||||
|
||||
release.poster = videoData.picPreview;
|
||||
@@ -394,8 +392,6 @@ async function fetchApiLatest(site, page = 1, upcoming = false) {
|
||||
encodeJSON: true,
|
||||
});
|
||||
|
||||
console.log(res.body);
|
||||
|
||||
if (res.statusCode === 200 && res.body.results?.[0]?.hits) {
|
||||
return scrapeApiReleases(res.body.results[0].hits, site);
|
||||
}
|
||||
@@ -463,7 +459,11 @@ async function fetchScene(url, site, release) {
|
||||
const deepUrl = getDeepUrl(url, site);
|
||||
const res = await bhttp.get(deepUrl);
|
||||
|
||||
return scrapeScene(res.body.toString(), url, site, deepUrl);
|
||||
if (res.statusCode === 200) {
|
||||
return scrapeScene(res.body.toString(), url, site, deepUrl);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
async function fetchActorScenes(actorName, apiUrl, siteSlug) {
|
||||
|
||||
Reference in New Issue
Block a user