Swapped poster and photo for Kelly Madison scraper.

This commit is contained in:
ThePendulum 2019-12-10 05:19:08 +01:00
parent 00252b6727
commit 3956994580
1 changed files with 2 additions and 4 deletions

View File

@ -105,11 +105,9 @@ function scrapeScene(html, url, site, shallowRelease) {
quality: resolutions[index],
}));
[release.poster] = document.body.innerHTML
release.photos = [document.body.innerHTML
.match(/poster: .*\.jpg/)[0]
.match(/https:\/\/.*\.jpg/);
if (shallowRelease) release.photos = [shallowRelease.poster]; // deep poster different from shallow poster, use shallow poster as additional photo
.match(/https:\/\/.*\.jpg/)[0]];
return release;
}