Skip to content

Commit

Permalink
searchmovie tvdrama +
Browse files Browse the repository at this point in the history
  • Loading branch information
ObiWanTwo authored Nov 29, 2017
1 parent 64f6bc0 commit fec3b56
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/torrents/server/controllers/torrents.server.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ exports.searchmovie = function (req, res) {
res.json(info);
}
});
} else if (type === 'tvdrama') {
tmdb.searchTv({
language: req.params.language,
query: req.query.query
}, function (err, info) {
if (err) {
res.status(900).send(err);
} else {
res.json(info);
}
});
}
};

Expand Down

0 comments on commit fec3b56

Please sign in to comment.