Added separate force media argument.

This commit is contained in:
DebaucheryLibrarian
2023-07-02 21:06:38 +02:00
parent a858b2409a
commit 61c84e18e4
4 changed files with 30 additions and 11 deletions

View File

@@ -26,7 +26,12 @@ function scrapeAll(scenes) {
url: unprint.query.url(actorEl, null),
}));
release.poster = query.img('img.mainThumb');
const poster = query.img('img.mainThumb');
if (poster && !/images\/p\d+\.jpe?g/i.test(poster)) {
release.poster = poster;
}
release.photoCount = query.number('.timeDate');
release.entryId = getEntryId(release);