Skip to content

[GOG]: ignore pack game type #2836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/backend/storeManagers/gog/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,12 @@ export async function gogToUnifiedInfo(
info: GamesDBData | undefined,
galaxyProductInfo: ProductsEndpointData | undefined
): Promise<GameInfo> {
if (!info || info.type !== 'game' || !info.game.visible_in_library) {
if (
!info ||
info.type !== 'game' ||
!info.game.visible_in_library ||
(galaxyProductInfo && galaxyProductInfo.game_type === 'pack')
) {
// @ts-expect-error TODO: Handle this somehow
return {}
}
Expand Down
2 changes: 1 addition & 1 deletion src/common/types/gog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export interface ProductsEndpointData {
}
is_secret: boolean
is_installable: boolean
game_type: 'game' | 'dlc' | 'spam'
game_type: 'game' | 'dlc' | 'pack'
is_pre_order: boolean
release_date: string
images: {
Expand Down