Adding comment listing sister sites for non-exclusive Gamma API scenes.
This commit is contained in:
@@ -237,6 +237,10 @@ async function scrapeApiReleases(json, site) {
|
||||
.concat(scene.categories?.map((category) => category.name))
|
||||
.filter(Boolean); // some categories don't have a name
|
||||
|
||||
if (scene.availableOnSite.length > 1) {
|
||||
release.comment = `Also available on ${scene.availableOnSite.filter((sisterSite) => sisterSite !== site.slug).join(', ')}`;
|
||||
}
|
||||
|
||||
const posterPath = scene.pictures.resized || (scene.pictures.nsfw?.top && Object.values(scene.pictures.nsfw.top)[0]);
|
||||
|
||||
if (posterPath) {
|
||||
|
||||
Reference in New Issue
Block a user