Updated Naughty America scraper, added media support..

This commit is contained in:
2019-12-05 04:26:54 +01:00
parent 6a90dc587c
commit 7cb888801f
67 changed files with 31 additions and 21 deletions

View File

@@ -223,12 +223,16 @@ async function fetchTagReleases(queryObject, options = {}) {
async function storeReleaseAssets(release, releaseId) {
await createReleaseMediaDirectory(release, releaseId);
await Promise.all([
associateTags(release, releaseId),
storePhotos(release, releaseId),
storePoster(release, releaseId),
storeTrailer(release, releaseId),
]);
try {
await Promise.all([
associateTags(release, releaseId),
storePhotos(release, releaseId),
storePoster(release, releaseId),
storeTrailer(release, releaseId),
]);
} catch (error) {
console.log(release, error);
}
}
async function storeRelease(release) {