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

Origin commit data
------------------
Branch: ni/coolstream
Commit: c5f3531913
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-03-19 (Sat, 19 Mar 2016)

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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-03-19 10:18:16 +01:00
parent 83eaedbabe
commit 209529ff95

View File

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