From 3956994580bdfc9a29f66a048ff258212c9e7405 Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Tue, 10 Dec 2019 05:19:08 +0100 Subject: [PATCH] Swapped poster and photo for Kelly Madison scraper. --- src/scrapers/kellymadison.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/scrapers/kellymadison.js b/src/scrapers/kellymadison.js index 4fa64fbf..0d0f37de 100644 --- a/src/scrapers/kellymadison.js +++ b/src/scrapers/kellymadison.js @@ -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; }