Skip to content

Commit 02ac2a1

Browse files
authored
[GOG]: ignore pack game type (#2836)
fix: ignore pack game type
1 parent 89970c5 commit 02ac2a1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/backend/storeManagers/gog/library.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,12 @@ export async function gogToUnifiedInfo(
622622
info: GamesDBData | undefined,
623623
galaxyProductInfo: ProductsEndpointData | undefined
624624
): Promise<GameInfo> {
625-
if (!info || info.type !== 'game' || !info.game.visible_in_library) {
625+
if (
626+
!info ||
627+
info.type !== 'game' ||
628+
!info.game.visible_in_library ||
629+
(galaxyProductInfo && galaxyProductInfo.game_type === 'pack')
630+
) {
626631
// @ts-expect-error TODO: Handle this somehow
627632
return {}
628633
}

src/common/types/gog.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export interface ProductsEndpointData {
361361
}
362362
is_secret: boolean
363363
is_installable: boolean
364-
game_type: 'game' | 'dlc' | 'spam'
364+
game_type: 'game' | 'dlc' | 'pack'
365365
is_pre_order: boolean
366366
release_date: string
367367
images: {

0 commit comments

Comments
 (0)