diff --git a/lib/get-info.js b/lib/get-info.js index 3bbe2ad9..c263f595 100644 --- a/lib/get-info.js +++ b/lib/get-info.js @@ -82,11 +82,14 @@ module.exports = function (Server) { } else if(status === 403) { callback("Private video", null); return; + } else if(status === 400) { + callback("Invalid video", null); + return; } else if(status === 503) { callback("API failure", null); return; } else if(status !== 200) { - callback(true, null); + callback("HTTP " + status, null); return; } diff --git a/lib/server.js b/lib/server.js index 012a98e3..9dcd396a 100644 --- a/lib/server.js +++ b/lib/server.js @@ -79,6 +79,7 @@ var Server = { db: null, ips: {}, acp: null, + announcement: null, httpaccess: null, actionlog: null, logHTTP: function (req, status) {