patched to compile with older libjansson versions

This commit is contained in:
horchi
2016-10-04 19:50:16 +02:00
parent 7245fc2071
commit 1e272932f1

3
tvsp.c
View File

@@ -520,7 +520,8 @@ void Tvsp::createXmlNode(json_t *jdata, const char *jkey, xmlNodePtr parent) {
std::ostringstream actors;
size_t arraySize = json_array_size(value);
json_array_foreach(value, index, arrValue) {
for (index = 0; index < json_array_size(value) && (arrValue = json_array_get(value, index)); index++){
// if images or actors -> create new parent
std::string mykey(key);
if (mykey.find("images") != std::string::npos) {