Skip to content

Commit 1bb3222

Browse files
committed
fix 354
1 parent 9b107a5 commit 1bb3222

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
- [#364](https://github.com/Phalcode/gamevault-backend/issues/364) Parental Control
88
- Games without any age rating set, are now shown in the game list for all users. -> **If you use parental control, apply an age rating to your games, if you don't want to show them to everyone.**
99
- Admins can now see all games, regardless of their age rating.
10-
1110
- [#362](https://github.com/Phalcode/gamevault-backend/issues/362) Gracefully handle chown/chmod failures on NFS-mounted volumes
1211
- [#363](https://github.com/Phalcode/gamevault-backend/issues/363) IGDB ID Search Results now always return as first result.
1312
- [#365](https://github.com/Phalcode/gamevault-backend/issues/365) Fixed Early Access Games not showing up in the Early Access List, depending on the filename. -> **Recache games, that still show issues**
1413
- Redirected early access and release date sorting & filtering to the respective metadata fields.
14+
- [#354](https://github.com/Phalcode/gamevault-backend/issues/354) Moved setting the default install parameters from IGDB Provider to fallback in metadata merge process and only set them if its a Windows Setup Game.
1515

1616
### Thanks
1717

src/modules/metadata/metadata.service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import configuration from "../../configuration";
1515
import { logGamevaultGame, logMetadataProvider } from "../../logging";
1616
import { GamesService } from "../games/games.service";
1717
import { GamevaultGame } from "../games/gamevault-game.entity";
18+
import { GameType } from "../games/models/game-type.enum";
1819
import { GameMetadata } from "./games/game.metadata.entity";
1920
import { GameMetadataService } from "./games/game.metadata.service";
2021
import { MinimalGameMetadataDto } from "./games/minimal-game.metadata.dto";
@@ -350,8 +351,12 @@ export class MetadataService {
350351

351352
let mergedMetadata = new GameMetadata();
352353

353-
// Fallback release date from file
354+
// Set fallback data
354355
mergedMetadata.release_date = game.release_date;
356+
if (game.type === GameType.WINDOWS_SETUP) {
357+
mergedMetadata.installer_parameters =
358+
'/D="%INSTALLDIR%" /S /DIR="%INSTALLDIR%" /SILENT /COMPONENTS=text';
359+
}
355360

356361
// Create New Effective Metadata by applying the priorotized metadata one by one
357362
for (const metadata of providerMetadata) {

src/modules/metadata/providers/igdb/igdb.metadata-provider.service.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ export class IgdbMetadataProviderService extends MetadataProvider {
237237
"t_thumb",
238238
"t_1080p_2x",
239239
),
240-
installer_parameters:
241-
'/D="%INSTALLDIR%" /S /DIR="%INSTALLDIR%" /SILENT /COMPONENTS=text',
242240
} as GameMetadata;
243241
}
244242

0 commit comments

Comments
 (0)