From bf7eb5b98681140a1622b1392357c45ca2da6fe2 Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Wed, 12 Mar 2025 16:08:58 -0400 Subject: [PATCH] fix issue in igdb where company isn't found --- .gitattributes | 1 + server/internal/metadata/igdb.ts | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitattributes b/.gitattributes index af3ad12..e3f08fc 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,3 +2,4 @@ /.yarn/releases/* binary /.yarn/plugins/**/* binary /.pnp.* binary linguist-generated +* text=auto eol=lf diff --git a/server/internal/metadata/igdb.ts b/server/internal/metadata/igdb.ts index c653cb7..66fdf9d 100644 --- a/server/internal/metadata/igdb.ts +++ b/server/internal/metadata/igdb.ts @@ -319,9 +319,6 @@ export class IGDBProvider implements MetadataProvider { for (const company of find_company_response) { // if company was a dev or publisher // CANNOT use else since a company can be both - - // TODO: why did this call manual metadata??? - if (found_involed.developer) developers.push(await developer(company.name)); if (found_involed.publisher) @@ -358,7 +355,7 @@ export class IGDBProvider implements MetadataProvider { }: _FetchPublisherMetadataParams): Promise { const response = await this.request( "companies", - `search "${query}"; fields *;` + `where name = "${query}"; fields *; limit 1;` ); for (const company of response) {