fix issue in igdb where company isn't found

This commit is contained in:
Huskydog9988
2025-03-12 16:08:58 -04:00
parent 77d06df7d3
commit bf7eb5b986
2 changed files with 2 additions and 4 deletions

1
.gitattributes vendored
View File

@ -2,3 +2,4 @@
/.yarn/releases/* binary /.yarn/releases/* binary
/.yarn/plugins/**/* binary /.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated /.pnp.* binary linguist-generated
* text=auto eol=lf

View File

@ -319,9 +319,6 @@ export class IGDBProvider implements MetadataProvider {
for (const company of find_company_response) { for (const company of find_company_response) {
// if company was a dev or publisher // if company was a dev or publisher
// CANNOT use else since a company can be both // CANNOT use else since a company can be both
// TODO: why did this call manual metadata???
if (found_involed.developer) if (found_involed.developer)
developers.push(await developer(company.name)); developers.push(await developer(company.name));
if (found_involed.publisher) if (found_involed.publisher)
@ -358,7 +355,7 @@ export class IGDBProvider implements MetadataProvider {
}: _FetchPublisherMetadataParams): Promise<PublisherMetadata> { }: _FetchPublisherMetadataParams): Promise<PublisherMetadata> {
const response = await this.request<IGDBCompany>( const response = await this.request<IGDBCompany>(
"companies", "companies",
`search "${query}"; fields *;` `where name = "${query}"; fields *; limit 1;`
); );
for (const company of response) { for (const company of response) {