Added Caught My Coach to Nubiles, fixed photos not prefixed with protocol.
This commit is contained in:
parent
7a0b364dcc
commit
0bc156f863
|
@ -8720,6 +8720,12 @@ const sites = [
|
|||
tags: ['family'],
|
||||
parent: 'nubiles',
|
||||
},
|
||||
{
|
||||
slug: 'caughtmycoach',
|
||||
name: 'Caught My Coach',
|
||||
url: 'https://caughtmycoach.com',
|
||||
parent: 'nubiles',
|
||||
},
|
||||
// PASCALS SUBSLUTS
|
||||
{
|
||||
slug: 'pascalssubsluts',
|
||||
|
|
|
@ -13,7 +13,7 @@ async function getPhotos(albumUrl) {
|
|||
const res = await qu.getAll(albumUrl, '.photo-thumb');
|
||||
|
||||
return res.ok
|
||||
? res.items.map(({ query }) => query.q('source').srcset)
|
||||
? res.items.map(({ query }) => qu.prefixUrl(query.q('source').srcset))
|
||||
: [];
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,10 @@ async function scrapeScene({ query }, url, site) {
|
|||
release.likes = Number(query.q('#likecount', true));
|
||||
|
||||
const albumLink = query.url('.content-pane-related-links a[href*="gallery"]');
|
||||
if (albumLink) release.photos = await getPhotos(`${site.url}${albumLink}`);
|
||||
|
||||
if (albumLink) {
|
||||
release.photos = await getPhotos(`${site.url}${albumLink}`);
|
||||
}
|
||||
|
||||
return release;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue