Phalcode / gamevault-app

Frontend for the self-hosted gaming platform for drm-free games
https://gamevau.lt
Other
402 stars 18 forks source link

[Suggestion] Use the IGDB API to automatically pull metadata and posters for games #384

Closed LoganJFisher closed 7 months ago

LoganJFisher commented 7 months ago

Is your feature request related to a problem? Please describe. Unless I'm doing something wrong, games added to gamevault currently lack any metadata (e.g. release year is blank) (and additionally I see no way to edit to manually add such information) and users must manually add an image. Utilizing the free IGDB API would allow for both to be automatically pulled from the net, creating a much smoother user experience.

Describe the solution you'd like Add support for the IGDB API to automatically pull game metadata and posters

Describe alternatives you've considered N/A

Alfagun74 commented 7 months ago

Thanks for the suggestion, but there is already a way to enrich your games with metadata outlined here: https://gamevau.lt/docs/server-docs/indexing-and-metadata#integration-with-rawg

However the RAWG platform announced, they will soon no longer maintain it is our next big task to find a solution for this. See https://github.com/Phalcode/gamevault-backend/issues/258.

So this ticket is pretty much a duplicate considering the last comment on that ticket :)

LoganJFisher commented 7 months ago

Why might my database not be identifying the games I've added? I can understand for a game like The Elder Scrolls IV: Oblivion, as my file is only actually titled "Oblivion.7z", but there are other games in my library like Titan Souls that is named "Titan Souls (2015).7z".

LoganJFisher commented 7 months ago

Oh, probably because I didn't add a RAWG API key... duh

LoganJFisher commented 7 months ago

I added the RAWG API key. Is it only supposed to add metadata? It's adding the metadata but not adding posters. That still needs to be done manually.

Da-Geek commented 7 months ago

https://github.com/Phalcode/gamevault-backend/issues/258#issuecomment-2033276455

Seems to suggest we will indeed be getting a new Game Data Provider soon 👍 IGDB was one provider mentioned.

I have also had the same issue as you @LoganJFisher with the BoxArt not being populated, but all other data being present, but this isn't happening with all Games, In fact some games do get BoxArt but it is very, Very wrong... and we have seen some very inappropriate box art show up!

Alfagun74 commented 7 months ago

I added the RAWG API key. Is it only supposed to add metadata? It's adding the metadata but not adding posters. That still needs to be done manually.

https://gamevau.lt/docs/server-docs/indexing-and-metadata#game-box-arts

Also make sure gamevault has permissions to write to its images volume.

Alfagun74 commented 7 months ago

and we have seen some very inappropriate box art show up!

😬😬😬😬😬😬

i knew i should have checked the safe-search parameter of the google scraper 😆

Da-Geek commented 7 months ago

and we have seen some very inappropriate box art show up!

😬😬😬😬😬😬

i knew i should have checked the safe-search parameter of the google scraper 😆

I would link to one of the images, But I might get myself in trouble :-p I would also like to add, I have no idea How it came up with the particular image it did, given the name of the actual game! I have 4 others that run GameVault and have the same file in our /files dir, and all of us see the same "Interesting" Box Art.

This is the file name: World War Fruit (v3) (W_P) (2024).7z

(https://twitter.com/CollegeEsports_/status/1772941920001544440)

I would be interested to see if anyone else gets the same image that we are seeing.

Da-Geek commented 7 months ago

Most errors with the Box Art are quiet strait forward, and we have only needed to remap a few titles, as well as correct/manually provide URLs of Box Art for a few titles. Otherwise it has been OK for the most part.

Alfagun74 commented 7 months ago

Send me a log of your gamevault server after setting LOG_LEVEL to debug in your environments, so i can see what is going on. @LoganJFisher