Added Moms on Moms to Girlsway.

This commit is contained in:
ThePendulum 2020-02-08 05:16:04 +01:00
parent a1b9b7ab38
commit 8ca458a8ff
9 changed files with 16 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

View File

@ -1457,6 +1457,7 @@ const sites = [
}, },
}, },
// FANTASY MASSAGE // FANTASY MASSAGE
// Club Fantasy Massage is an aggregate site
{ {
slug: 'fantasymassage', slug: 'fantasymassage',
name: 'Fantasy Massage', name: 'Fantasy Massage',
@ -1583,6 +1584,15 @@ const sites = [
referer: 'https://www.girlsway.com', referer: 'https://www.girlsway.com',
}, },
}, },
{
slug: 'momsonmoms',
name: 'Moms On Moms',
url: 'https://www.girlsway.com/en/videos/momsonmoms',
network: 'girlsway',
parameters: {
scene: 'https://www.girlsway.com/en/video',
},
},
// JAYS POV // JAYS POV
{ {
slug: 'jayspov', slug: 'jayspov',

View File

@ -59,8 +59,6 @@ function scrapePhotos(html) {
async function getPhotos(albumPath, site) { async function getPhotos(albumPath, site) {
const albumUrl = getAlbumUrl(albumPath, site); const albumUrl = getAlbumUrl(albumPath, site);
console.log(albumUrl);
try { try {
const html = await fetchPhotos(albumUrl); const html = await fetchPhotos(albumUrl);
const $ = cheerio.load(html, { normalizeWhitespace: true }); const $ = cheerio.load(html, { normalizeWhitespace: true });
@ -211,7 +209,7 @@ async function scrapeScene(html, url, site) {
const rawTags = data?.keywords?.split(', ') || data2?.keywords?.split(', '); const rawTags = data?.keywords?.split(', ') || data2?.keywords?.split(', ');
release.tags = hasTrans ? [...rawTags, 'transsexual'] : rawTags; 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: '' }); if (channel) release.channel = slugify(channel, { delimiter: '' });
release.poster = videoData.picPreview; release.poster = videoData.picPreview;
@ -394,8 +392,6 @@ async function fetchApiLatest(site, page = 1, upcoming = false) {
encodeJSON: true, encodeJSON: true,
}); });
console.log(res.body);
if (res.statusCode === 200 && res.body.results?.[0]?.hits) { if (res.statusCode === 200 && res.body.results?.[0]?.hits) {
return scrapeApiReleases(res.body.results[0].hits, site); return scrapeApiReleases(res.body.results[0].hits, site);
} }
@ -463,7 +459,11 @@ async function fetchScene(url, site, release) {
const deepUrl = getDeepUrl(url, site); const deepUrl = getDeepUrl(url, site);
const res = await bhttp.get(deepUrl); const res = await bhttp.get(deepUrl);
if (res.statusCode === 200) {
return scrapeScene(res.body.toString(), url, site, deepUrl); return scrapeScene(res.body.toString(), url, site, deepUrl);
}
return null;
} }
async function fetchActorScenes(actorName, apiUrl, siteSlug) { async function fetchActorScenes(actorName, apiUrl, siteSlug) {