After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796231 - grl-thegamesdb.lua returns nil for games with multiple genres
grl-thegamesdb.lua returns nil for games with multiple genres
Status: RESOLVED OBSOLETE
Product: grilo
Classification: Other
Component: plugins
git master
Other Linux
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on:
Blocks:
 
 
Reported: 2018-05-18 08:21 UTC by pirateking
Modified: 2018-09-24 09:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
For the games with multiple genres, insert all values inside index 'genre' (8.84 KB, text/x-lua)
2018-05-18 08:21 UTC, pirateking
  Details
grl-thegamesdb: Allow thegamesdb to return multiple genres for games that have them (1.18 KB, patch)
2018-05-18 09:27 UTC, pirateking
none Details | Review
grl-thegamesdb: Allow thegamesdb to return multiple genres for games that have them (1.07 KB, patch)
2018-05-18 18:16 UTC, pirateking
none Details | Review
test: Add test to check multiple genre (2.92 KB, patch)
2018-05-19 18:56 UTC, pirateking
none Details | Review

Description pirateking 2018-05-18 08:21:59 UTC
Created attachment 372169 [details]
For the games with multiple genres, insert all values inside index 'genre'

Currently the thegamesdb does not add genres to table media.genre for games with multiple genres.
Comment 1 pirateking 2018-05-18 09:27:44 UTC
Created attachment 372175 [details] [review]
grl-thegamesdb: Allow thegamesdb to return multiple genres for games that have them
Comment 2 Bastien Nocera 2018-05-18 11:34:46 UTC
Review of attachment 372175 [details] [review]:

This will need a test written as well.
Comment 3 pirateking 2018-05-18 18:15:38 UTC
Actually I left a print statement by mistake in the previous attachment. Sorry :( , I will update another attachment
Comment 4 pirateking 2018-05-18 18:16:12 UTC
Created attachment 372197 [details] [review]
grl-thegamesdb: Allow thegamesdb to return multiple genres for games that have them
Comment 5 Bastien Nocera 2018-05-18 18:25:24 UTC
This is where the tests live:
https://git.gnome.org/browse/grilo-plugins/tree/tests/games

You'll need to add mock data for the request (a file that represents the output of the http request) in data/network-data.ini, and modify test_games.c to check that the output of the parsing is as expected.
Comment 6 pirateking 2018-05-19 18:56:37 UTC
Created attachment 372225 [details] [review]
test: Add test to check multiple genre

Currently thegamesdb only returns genre for games with a
single genre. This test checks that thegamesdb returns
multiple genres for the game Shatterhand.
Comment 7 GNOME Infrastructure Team 2018-09-24 09:58:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/grilo/issues/133.