Added actor photos to Brazzers scene scrape. Added no-video poster to Score. Not flattening actor avatar fallbacks.

This commit is contained in:
2020-03-04 17:21:40 +01:00
parent 6733777f63
commit 6c3cba1b87
5 changed files with 31 additions and 15 deletions

View File

@@ -95,9 +95,11 @@ async function scrapeScene(html, url, site) {
const durationEl = qa('value').find(el => /\d{1,3}:\d{2}/.test(el.textContent));
release.duration = ql(durationEl);
release.poster = qp('video') || qi('.flowplayer img'); // _800.jpg is larger than _xl.jpg in landscape
release.poster = qp('video') || qi('.flowplayer img') || qi('img'); // _800.jpg is larger than _xl.jpg in landscape
const photosUrl = qu('.stat a[href*=photos]');
console.log(release.poster);
if (photosUrl) {
release.photos = await fetchPhotos(photosUrl);
} else {