Changed log

This commit is contained in:
zeldaroot 2021-05-28 03:23:16 +03:00
parent 7f4a6c4440
commit 40fe951dc6

View file

@ -309,11 +309,16 @@ router.get('/:tab', function(req, res) {
},
function(error, response, body) {
if (error || response.statusCode !== 200 || !body) {
// console.error(
// p.url,
// error && error.code,
// response && response.statusCode
// );
if (
p.url.index('api.themoviedb.org') === -1 &&
p.url.index('www.googleapis.com') === -1
) {
console.error(
p.url,
error && error.code,
response && response.statusCode
);
}
return callback();
}
var json = tryParseJSON(body);