Fixed media module trying to fetch invalid source URLs. Added Accidental Gangbang to Adult Time.

This commit is contained in:
DebaucheryLibrarian
2022-09-27 20:09:46 +02:00
parent 3db8b80164
commit 0fc37e46d2
29 changed files with 4857 additions and 2451 deletions

View File

@@ -150,7 +150,7 @@ async function getFullPhotos(entryId, site) {
},
});
if (res.ok) {
if (res.ok && typeof res.body === 'object') { // gives 200 OK even when redirected to signup page
return Object.values(res.body);
}
@@ -442,7 +442,7 @@ async function scrapeReleaseApi(data, site, options) {
];
}
if (data.photoset_id && options.includePhotos) {
if (data.photoset_id && options.includePhotos && options.parameters?.includePhotos !== false) {
release.photos = await getPhotosApi(data.photoset_id, site, options.parameters);
}