Fixed media module trying to fetch invalid source URLs. Added Accidental Gangbang to Adult Time.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user