diff --git a/src/scrapers/radical.js b/src/scrapers/radical.js index 58d03b74..d759bb0b 100755 --- a/src/scrapers/radical.js +++ b/src/scrapers/radical.js @@ -94,7 +94,7 @@ function scrapeSceneApi(data, channel, parameters) { } release.photos = [ - ...data.previews?.full || [], + ...data.previews?.full ? Object.values(data.previews?.full) : [], // sometimes it's an array, sometimes an object { '1': 'url' } ...data.extra_thumbnails?.filter((thumbnail) => !thumbnail.includes('mobile') // mobile is the cropped photo of a photo already in the set && !(thumbnail.includes('_scene') && release.poster?.includes('_scene')) // likely the same photo, filename may differ so cannot compare full path && !(thumbnail.includes('_player') && release.poster?.includes('_player')) diff --git a/tests/profiles.js b/tests/profiles.js index 77cbadef..a8fe320a 100644 --- a/tests/profiles.js +++ b/tests/profiles.js @@ -113,10 +113,11 @@ const actors = [ // perv city { entity: 'pervcity', name: 'Brooklyn Gray', fields: ['avatar', 'description', 'dateOfBirth', 'birthPlace', 'ethnicity', 'height', 'weight', 'eyes', 'hairColor'] }, { entity: 'dpdiva', name: 'Liz Jordan', fields: ['avatar', 'description', 'dateOfBirth', 'birthPlace', 'ethnicity', 'height', 'weight', 'eyes', 'hairColor'] }, - // arch angel + // etc. { entity: 'archangel', name: 'Summer Brielle', fields: ['avatar', 'description', 'dateOfBirth', 'age', 'measurements', 'height', 'aliases'] }, - // the flourish { entity: 'theflourishxxx', name: 'XWifeKaren', fields: ['avatar', 'description'] }, + { entity: 'hookuphotshot', name: 'Kenzie Reeves', fields: ['avatar', 'description'] }, + { entity: 'inserted', name: 'Kenzie Reeves', fields: ['avatar', 'description'] }, ]; const actorScrapers = scrapers.actors;