summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author1PunMan <saurabhsingh412@gmail.com>2018-05-28 21:06:52 +0530
committerVictor Toso <me@victortoso.com>2018-07-26 16:56:48 +0200
commitbfb35597c8bd0e1fd0d2c3a66cbc26eac64217c3 (patch)
treebc2e4f409c1626a6433acbe424cb1c224cf930ca
parentb2ff70cc031d0cdbb1d309b00ffb47ae3cad1987 (diff)
downloadgrilo-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.lua10
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