Jump to content

GameBrowser Game metadata not working


smoothquark

Recommended Posts

smoothquark

Currently running Emby server Version 3.6.0.74 beta on Linux Debian and GameBrowser 3.2.0.0. I am currently building a Windows HTPC to play some Wii games via Dolphin. I had GameBrowser working and pulling metadata and images some time ago, but at some point it had stopped working. I reinstalled everything and just cannot get metadata and images to get pulled in. Wii Games wbfs files are in "/Games/Nintendo Wii" folder, and permissions are all OK. GameBrowser has "Nintendo Wii" set up as a Game System and "/Games/Nintendo Wii" as the folder. Library is named "Games" with folder "/Games"

 

Relevant bits from the log...

 

2018-12-02 10:27:06.702 Debug App: Running FolderImageProvider for /Games
2018-12-02 10:27:06.710 Debug App: Running GameSystemXmlProvider for /Games/Nintendo Wii
2018-12-02 10:27:06.711 Debug ProviderManager: Saving /Games/Nintendo Wii to Emby Xml.
2018-12-02 10:27:06.713 Debug App: Running FolderImageProvider for /Games/Nintendo Wii/Wii Sports
2018-12-02 10:27:06.717 Debug App: Running GameXmlProvider for /Games/Nintendo Wii/Wii Sports/Wii Sports.wbfs
2018-12-02 10:27:06.718 Debug App: Running EmuMoviesImageProvider for /Games/Nintendo Wii/Wii Sports/Wii Sports.wbfs
2018-12-02 10:27:06.718 Info HttpClient: GET https://api.gamesdbase.com/login.aspx?user=***&api=***&product=4D8621EE919A13EB6E89B7EDCA6424FC33D6
2018-12-02 10:27:08.592 Info HttpClient: GET https://api.gamesdbase.com/search.aspx?search=Wii+Sports&system=&media=Cabinet&sessionid=824C68E62FADD5721A8F8DC1
2018-12-02 10:27:08.622 Info HttpClient: GET https://api.gamesdbase.com/search.aspx?search=Wii+Sports&system=&media=Cart&sessionid=824C68E62FADD5721A8F8DC1
2018-12-02 10:27:08.654 Info HttpClient: GET https://api.gamesdbase.com/search.aspx?search=Wii+Sports&system=&media=Snap&sessionid=824C68E62FADD5721A8F8DC1
2018-12-02 10:27:08.687 Info HttpClient: GET https://api.gamesdbase.com/search.aspx?search=Wii+Sports&system=&media=Title&sessionid=824C68E62FADD5721A8F8DC1

2018-12-02 10:27:08.719 Debug ProviderManager: Saving /Games/Nintendo Wii/Wii Sports/Wii Sports.wbfs to Emby Xml.

 

Gamedbase login.aspx works OK with my EmuMovies username and password (* above) with Result Succeess = true and my SessionID.

 

Looking at the search.aspx params, system is not filled in.

 

Looking at the source code on GitHub, in GameBrowser/GameBrowser/Providers/EmuMovies/EmuMoviesUrls.cs, using getsystems.aspx and getmedias.aspx,  system should be Nintendo_Wii. Looks like GameBrowser/GameBrowser/Providers/EmuMovies/EmuMoviesImageProvider.cs returns "" for "Nintendo Wii". Perhaps this is the problem?

 

Where is metadata actually scrapped from?

 

If I have a JPG with "Wii Sports.jpg" in the same folder as "Wii Sports.wbfs", it is shown. I tried having an nfo file with metadata, but it is not read.

 

Any pointers to get this this working will be very helpful and thank you in advance.

Edited by smoothquark
Link to comment
Share on other sites

There is no internet metadata anymore now that games db is no longer feasible.

 

I don't believe we ever added support for game nfo files. Games are currently XML only.

Link to comment
Share on other sites

smoothquark

Ah! That explains things. What are the required elements of the XML files? I can always generate my own xml files if need be for the metadata, as jpegs in the same game folders works OK.

Link to comment
Share on other sites

Unfortunately we don't have documentation on this. The easiest thing to do is click save using the metadata editor and that will generate one, if you've enabled saving to xml for that library.

Link to comment
Share on other sites

Happy2Play

Ah! That explains things. What are the required elements of the XML files? I can always generate my own xml files if need be for the metadata, as jpegs in the same game folders works OK.

 

 

Example from another topic.

 

post-268149-0-79997000-1516643312.jpg

Link to comment
Share on other sites

The dropdown in the metadata editor won't have those but you can use any text you want by editing the xml. But for Emby parental control features to work, you have to use the ones from the dropdown.

Link to comment
Share on other sites

  • 6 months later...

We're happy to look into other sources of metadata for games if you can suggest any. Thanks.

Link to comment
Share on other sites

  • 2 years later...
InaudibleDirge
On 6/30/2019 at 2:51 PM, Luke said:

We're happy to look into other sources of metadata for games if you can suggest any. Thanks.

to revive this topic as i see there is still no metadata being pulled by gamebrowser, i have a couple of suggestions.

i think IGDB is probably the best source for metadata and coverarts. their API is here (https://api-docs.igdb.com/#about). and then steamgridDB is a really good source for extra images. their API is here (https://www.steamgriddb.com/api/v2)

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

olympus1
On 8/2/2021 at 6:35 PM, InaudibleDirge said:

to revive this topic as i see there is still no metadata being pulled by gamebrowser, i have a couple of suggestions.

i think IGDB is probably the best source for metadata and coverarts. their API is here (https://api-docs.igdb.com/#about). and then steamgridDB is a really good source for extra images. their API is here (https://www.steamgriddb.com/api/v2)

You are 100% correct sir, IGDB is now owned by Amazon, so you could call it the IMDB of games.

The IGDB V4 API is now free with no limitations for non-commercial usage under the terms of the Twitch developer service agreement.

They seem to allow commercial usage of it too if you get in touch with them and make an agreement, but I am not sure about that.

Also steamgridDB could be called the.. fanart.tv of games.

Edited by olympus1
  • Like 1
Link to comment
Share on other sites

On 8/6/2021 at 5:56 PM, olympus1 said:

You are 100% correct sir, IGDB is now owned by Amazon, so you could call it the IMDB of games.

The IGDB V4 API is now free with no limitations for non-commercial usage under the terms of the Twitch developer service agreement.

They seem to allow commercial usage of it too if you get in touch with them and make an agreement, but I am not sure about that.

Also steamgridDB could be called the.. fanart.tv of games.

Do those have enough data to be viable options?

Link to comment
Share on other sites

olympus1
6 hours ago, Luke said:

Do those have enough data to be viable options?

About steamgridDB, they have artwork for almost every steam game and it's the most popular artwork source for adding roms to steam as external games.

About igdb, Yes, I just created a xml out of them (I've created a python script for the API for personal use), and I got everything what I used to get from gamesdb.

This is what they return that could be useful for Gamebrowser.

What I love about it is that they don't only return the typical summary like all others, they also return the storyline of the game.

They also return high quality covers too if you change in the returned image /t_thumb/ to /t_1080p/

name

age_ratings

aggregated_rating

aggregated_rating_count

collection

cover

first_release_date

franchise

franchises

game_modes

genres

involved_companies

platforms

rating

rating_count

screenshots

slug

storyline

summary

total_rating

total_rating_count

videos

websites

 

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Item>
  <LockData>true</LockData>
  <Overview>As the Mushroom Kingdom prepares to celebrate the arrival of a comet that appears in the skies every hundred years, Princess Peach sends Mario an invitation to attend. As Mario arrives, Bowser and minions attack the Kingdom and once again kidnap the Princess... and her entire castle. Mario gives chase but is lost as the ship leaves the atmosphere and ends up on a space station built on the visiting comet overseen by the mysterious Rosalina. It's up to Mario to brave new galaxies, find the elusive Power Stars, and bring his friends home.</Overview>
  <LocalTitle>Super Mario Galaxy</LocalTitle>
  <PremiereDate>2007-11-01</PremiereDate>
  <ProductionYear>2007</ProductionYear>
  <ContentRating>E - Everyone</ContentRating>
  <Rating>9.3</Rating>
  <Trailers>
    <Trailer>https://www.youtube.com/watch?v=-ZH0SHeu46Q</Trailer>
  </Trailers>
  <Genres>
    <Genre>Platform</Genre>
    <Genre>Adventure</Genre>
  </Genres>
  <Studios>
    <Studio>Nintendo</Studio>
    <Studio>Nintendo EAD</Studio>
  </Studios>
  <Tags>
    <Tag>Mario Bros.</Tag>
    <Tag>Mario</Tag>
    <Tag>Super Mario Galaxy</Tag>
  </Tags>
  <IgdbId>1077</IgdbId>
  <IgdbSlug>super-mario-galaxy</IgdbSlug>
  <Players>Single player, Co-operative</Players>
  <GameSystem>Wii</GameSystem>
</Item>

 

Edited by olympus1
Link to comment
Share on other sites

  • 1 year later...
Arturito

@Luke Any news on this?

IGDB would be perfect for metadata on emby, and for images like posters SteamgridDB has a lot of options.

Right now the only way of adding metadata to games is trough the interface manually clicking edit button and manually inserting each information. (This is a pain)

I don't know why but, for games library i can't set it to save the xml locally, so any edits that i do doesn't save the .xml file on the rom folder, even creating the .xml manually wich for me would be easy to do in batch, emby doesn't seem to read any information from it, so this is kind of frustrating.

For images i have done my entire library manually but for metadata this would take ages and its not viable doing it through emby interface so would be great if we have IGDB integration but for short would be better to have at least the possibility to save metadata locally.

Link to comment
Share on other sites

  • 2 weeks later...
On 1/24/2023 at 9:37 AM, Arturito said:

@Luke Any news on this?

IGDB would be perfect for metadata on emby, and for images like posters SteamgridDB has a lot of options.

Right now the only way of adding metadata to games is trough the interface manually clicking edit button and manually inserting each information. (This is a pain)

I don't know why but, for games library i can't set it to save the xml locally, so any edits that i do doesn't save the .xml file on the rom folder, even creating the .xml manually wich for me would be easy to do in batch, emby doesn't seem to read any information from it, so this is kind of frustrating.

For images i have done my entire library manually but for metadata this would take ages and its not viable doing it through emby interface so would be great if we have IGDB integration but for short would be better to have at least the possibility to save metadata locally.

I don't have any news yet, but we will be adding nfo support for local metadata for games.

Link to comment
Share on other sites

  • 1 year later...
Whatscheiser
On 8/9/2021 at 6:42 PM, olympus1 said:

About steamgridDB, they have artwork for almost every steam game and it's the most popular artwork source for adding roms to steam as external games.

About igdb, Yes, I just created a xml out of them (I've created a python script for the API for personal use), and I got everything what I used to get from gamesdb.

This is what they return that could be useful for Gamebrowser.

What I love about it is that they don't only return the typical summary like all others, they also return the storyline of the game.

They also return high quality covers too if you change in the returned image /t_thumb/ to /t_1080p/

name

age_ratings

aggregated_rating

aggregated_rating_count

collection

cover

first_release_date

franchise

franchises

game_modes

genres

involved_companies

platforms

rating

rating_count

screenshots

slug

storyline

summary

total_rating

total_rating_count

videos

websites

 

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Item>
  <LockData>true</LockData>
  <Overview>As the Mushroom Kingdom prepares to celebrate the arrival of a comet that appears in the skies every hundred years, Princess Peach sends Mario an invitation to attend. As Mario arrives, Bowser and minions attack the Kingdom and once again kidnap the Princess... and her entire castle. Mario gives chase but is lost as the ship leaves the atmosphere and ends up on a space station built on the visiting comet overseen by the mysterious Rosalina. It's up to Mario to brave new galaxies, find the elusive Power Stars, and bring his friends home.</Overview>
  <LocalTitle>Super Mario Galaxy</LocalTitle>
  <PremiereDate>2007-11-01</PremiereDate>
  <ProductionYear>2007</ProductionYear>
  <ContentRating>E - Everyone</ContentRating>
  <Rating>9.3</Rating>
  <Trailers>
    <Trailer>https://www.youtube.com/watch?v=-ZH0SHeu46Q</Trailer>
  </Trailers>
  <Genres>
    <Genre>Platform</Genre>
    <Genre>Adventure</Genre>
  </Genres>
  <Studios>
    <Studio>Nintendo</Studio>
    <Studio>Nintendo EAD</Studio>
  </Studios>
  <Tags>
    <Tag>Mario Bros.</Tag>
    <Tag>Mario</Tag>
    <Tag>Super Mario Galaxy</Tag>
  </Tags>
  <IgdbId>1077</IgdbId>
  <IgdbSlug>super-mario-galaxy</IgdbSlug>
  <Players>Single player, Co-operative</Players>
  <GameSystem>Wii</GameSystem>
</Item>

 

Would something like this example still work after the Emby 4.8.1.0 / Gamebrowser 3.3.3 update? If I were to keep an xml file with relevant metadata in the same folder as my game roms?

Looking at the library.db file some things seemed to have moved around or just completely went away. I've been trying to follow what I could find here as well as reddit for xml examples to restore metadata to my games library but no metadata seems to get picked up when I perform library scan. Folders are already populated with correctly named artwork so thats all fine. But details like overview, rating, release date etc... is all gone and I can't seem to bring it in by placing the relevant xml files within the game directories.

Edited by Whatscheiser
  • Agree 1
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...