diff options
author | 1PunMan <saurabhsingh412@gmail.com> | 2018-05-28 21:06:52 +0530 |
---|---|---|
committer | Victor Toso <me@victortoso.com> | 2018-07-26 16:56:48 +0200 |
commit | bfb35597c8bd0e1fd0d2c3a66cbc26eac64217c3 (patch) | |
tree | bc2e4f409c1626a6433acbe424cb1c224cf930ca | |
parent | b2ff70cc031d0cdbb1d309b00ffb47ae3cad1987 (diff) | |
download | grilo-plugins-bfb35597c8bd0e1fd0d2c3a66cbc26eac64217c3.tar.gz |
thegamesdb: Add developer, publisher, coop & players
Allow lua thegamesdb to use developer, publisher, coop & players
keys.
-rw-r--r-- | src/lua-factory/sources/grl-thegamesdb.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lua-factory/sources/grl-thegamesdb.lua b/src/lua-factory/sources/grl-thegamesdb.lua index ae9590a..c93737f 100644 --- a/src/lua-factory/sources/grl-thegamesdb.lua +++ b/src/lua-factory/sources/grl-thegamesdb.lua @@ -26,7 +26,7 @@ source = { id = "grl-thegamesdb", name = "TheGamesDB.net", description = "TheGamesDB.net", - supported_keys = { "description", "thumbnail", "external-url", "rating", "publication-date", "genre" }, + supported_keys = { "description", "thumbnail", "external-url", "rating", "publication-date", "genre", "developer", "publisher", "coop", "players"}, resolve_keys = { ["type"] = "none", required = { "title" }, @@ -180,20 +180,20 @@ function fetch_game_cb(results) end if game.Developer then - -- FIXME media.developer = game.Developer.xml + media.developer = game.Developer.xml end if game.Publisher then - -- FIXME media.publisher = game.Publisher.xml + media.publisher = game.Publisher.xml end if game.Players then - -- FIXME media.players = tonumber(game.Players.xml) + media.players = tostring(game.Players.xml) end if game['Co-op'] then if game['Co-op'].xml == 'Yes' then - -- FIXME media.coop = true + media.coop = true end end |