forked from DebaucheryLibrarian/traxxx
Swapped poster and photo for Kelly Madison scraper.
This commit is contained in:
parent
00252b6727
commit
3956994580
|
@ -105,11 +105,9 @@ function scrapeScene(html, url, site, shallowRelease) {
|
||||||
quality: resolutions[index],
|
quality: resolutions[index],
|
||||||
}));
|
}));
|
||||||
|
|
||||||
[release.poster] = document.body.innerHTML
|
release.photos = [document.body.innerHTML
|
||||||
.match(/poster: .*\.jpg/)[0]
|
.match(/poster: .*\.jpg/)[0]
|
||||||
.match(/https:\/\/.*\.jpg/);
|
.match(/https:\/\/.*\.jpg/)[0]];
|
||||||
|
|
||||||
if (shallowRelease) release.photos = [shallowRelease.poster]; // deep poster different from shallow poster, use shallow poster as additional photo
|
|
||||||
|
|
||||||
return release;
|
return release;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue