Fixed edge-case in Radical scraper breaking Got Filled.

This commit is contained in:
DebaucheryLibrarian
2026-01-11 01:38:18 +01:00
parent c85915bf97
commit 0d9a65a077
2 changed files with 4 additions and 3 deletions

View File

@@ -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'))