More formatting fixes
This commit is contained in:
parent
03ee6075d0
commit
b8990eebbb
17
lib/utils.js
17
lib/utils.js
@ -29,23 +29,6 @@ function sendSearchResponse(movies, resp) {
|
|||||||
.send();
|
.send();
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatSearchResults(movies)
|
|
||||||
{
|
|
||||||
try{
|
|
||||||
|
|
||||||
if (movies != undefined)
|
|
||||||
{
|
|
||||||
|
|
||||||
var newMovies = [];
|
|
||||||
|
|
||||||
for (var i = 0; i < movies.length; i++)
|
|
||||||
{ newMovies.push({
|
|
||||||
original_title: movies[i].original_title,
|
|
||||||
inLibrary: movies[i].in_library,
|
|
||||||
year: movies[i].year,
|
|
||||||
titles: movies[i].titles,
|
|
||||||
imdb: movies[i].imdb });
|
|
||||||
}
|
|
||||||
function formatSearchResults(movies) {
|
function formatSearchResults(movies) {
|
||||||
|
|
||||||
if (movies != undefined) {
|
if (movies != undefined) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user