mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user