Added source maps. Fixed DDFNetwork avatar and improved photo fetch error handling.
This commit is contained in:
@@ -189,7 +189,7 @@ async function storePhotos(release, releaseId) {
|
||||
|
||||
const metaFiles = await Promise.map(newPhotos, async (photoUrl, index) => fetchPhoto(photoUrl, index, `(${release.site.name}, ${releaseId}) "${release.title}"`), {
|
||||
concurrency: 10,
|
||||
});
|
||||
}).filter(photo => photo);
|
||||
|
||||
const uniquePhotos = await filterHashDuplicates(metaFiles, 'releases', 'photo', `(${release.site.name}, ${releaseId}) "${release.title}"`);
|
||||
const savedPhotos = await savePhotos(uniquePhotos, release, releaseId);
|
||||
@@ -244,7 +244,7 @@ async function storeAvatars(profile, actor) {
|
||||
|
||||
const metaFiles = await Promise.map(newPhotos, async (photoUrl, index) => fetchPhoto(photoUrl, index, actor.name), {
|
||||
concurrency: 10,
|
||||
});
|
||||
}).filter(photo => photo);
|
||||
|
||||
const uniquePhotos = await filterHashDuplicates(metaFiles, 'actors', ['avatar', 'photo'], actor.name);
|
||||
const [savedPhotos, avatarEntry] = await Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user