mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-22 04:31:15 +10:00
Merge branch 'develop' into small-fixes
This commit is contained in:
@ -117,6 +117,10 @@ interface SteamAppDetailsLarge extends SteamAppDetailsSmall {
|
|||||||
filename: string;
|
filename: string;
|
||||||
ordinal: number;
|
ordinal: number;
|
||||||
}[];
|
}[];
|
||||||
|
mature_content_screenshots: {
|
||||||
|
filename: string;
|
||||||
|
ordinal: number;
|
||||||
|
}[];
|
||||||
};
|
};
|
||||||
full_description: string;
|
full_description: string;
|
||||||
}
|
}
|
||||||
@ -689,16 +693,20 @@ export class SteamProvider implements MetadataProvider {
|
|||||||
context?.progress(40);
|
context?.progress(40);
|
||||||
|
|
||||||
const images = [cover, banner];
|
const images = [cover, banner];
|
||||||
const screenshotCount = game.screenshots?.all_ages_screenshots?.length || 0;
|
|
||||||
context?.logger.info(`Processing ${screenshotCount} screenshots...`);
|
|
||||||
|
|
||||||
for (const image of game.screenshots?.all_ages_screenshots || []) {
|
const screenshots = game.screenshots?.all_ages_screenshots || [];
|
||||||
|
screenshots.push(...(game.screenshots?.mature_content_screenshots || []));
|
||||||
|
screenshots.sort((a, b) => a.ordinal - b.ordinal);
|
||||||
|
|
||||||
|
context?.logger.info(`Processing ${screenshots.length} screenshots...`);
|
||||||
|
|
||||||
|
for (const image of screenshots) {
|
||||||
const imageUrl = this._getImageUrl(image.filename);
|
const imageUrl = this._getImageUrl(image.filename);
|
||||||
images.push(createObject(imageUrl));
|
images.push(createObject(imageUrl));
|
||||||
}
|
}
|
||||||
|
|
||||||
context?.logger.info(
|
context?.logger.info(
|
||||||
`Image processing complete: icon, cover, banner and ${screenshotCount} screenshots`,
|
`Image processing complete: icon, cover, banner and ${screenshots.length} screenshots`,
|
||||||
);
|
);
|
||||||
context?.progress(50);
|
context?.progress(50);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user