Fixed edge-case in Radical scraper breaking Got Filled.
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user