- controlapi: use hh->SendResult() in new getMoviesCGI()

This commit is contained in:
svenhoefer
2016-03-19 10:18:16 +01:00
parent 2fd4d6c4a1
commit c5f3531913

View File

@@ -3622,13 +3622,8 @@ void CControlAPI::getMoviesCGI(CyhookHandler *hh) {
}
result = hh->outArray("movies", result);
// write footer
if (outType == json) {
hh->WriteLn(json_out_success(result));
}
else {
hh->WriteLn(result);
}
hh->SendResult(result);
}
//Helpfunction to get movies of a dir