Skip to content

Commit

Permalink
remove edition tags in search
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfagun74 committed Oct 25, 2024
1 parent 77ba97d commit d8edecb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# GameVault Backend Server Changelog

## 13.0.5

### Changes

- Fixed Metadata Search to not include Edition Tags.

## 13.0.4

### Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gamevault-backend",
"version": "13.0.4",
"version": "13.0.5",
"description": "the self-hosted gaming platform for drm-free games",
"author": "Alkan Alper, Schäfer Philip GbR / Phalcode",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export abstract class MetadataProvider implements OnModuleInit {
public async getBestMatch(
game: GamevaultGame,
): Promise<MinimalGameMetadataDto> {
// Search for the game using all available metadata providers.
const gameResults = await this.search(game.title);
// Search for the game using all available metadata providers but remove Edition Tags in the search.
const gameResults = await this.search(game.title.replace(/\[.*?\]/g, ""));

// If no matching games are found, throw an exception.
if (gameResults.length === 0) {
Expand Down

0 comments on commit d8edecb

Please sign in to comment.