Add engine version string to ContentDB API request (#9890)

This commit is contained in:
rubenwardy 2020-05-24 14:46:50 +01:00 committed by Nils Dagsson Moskopp
parent 7a9d57a4b6
commit 2ec7efd0ec
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 3 additions and 2 deletions

View File

@ -198,10 +198,11 @@ function store.load()
assert(core.create_dir(tmpdir)) assert(core.create_dir(tmpdir))
local base_url = core.settings:get("contentdb_url") local version = core.get_version()
local base_url = core.settings:get("contentdb_url")
local url = base_url .. local url = base_url ..
"/api/packages/?type=mod&type=game&type=txp&protocol_version=" .. "/api/packages/?type=mod&type=game&type=txp&protocol_version=" ..
core.get_max_supp_proto() core.get_max_supp_proto() .. "&engine_version=" .. version.string
for _, item in pairs(core.settings:get("contentdb_flag_blacklist"):split(",")) do for _, item in pairs(core.settings:get("contentdb_flag_blacklist"):split(",")) do
item = item:trim() item = item:trim()