Add note to config template, fix improper err callback

This commit is contained in:
calzoneman 2015-04-07 15:42:24 -05:00
parent 5522628363
commit 976228683b
2 changed files with 5 additions and 3 deletions

View File

@ -122,6 +122,8 @@ mail:
# See https://developers.google.com/youtube/registering_an_application
# Google is closing the v2 API (which allowed anonymous requests) on
# April 20, 2015 so you must register a v3 API key now.
# NOTE: You must generate a Server key under Public API access, NOT a
# browser key.
youtube-v3-key: ''
# Minutes between saving channel state to disk
channel-save-interval: 5

View File

@ -79,7 +79,7 @@ var Getters = {
var media = new Media(video.id, video.title, video.duration, "yt", meta);
callback(false, media);
}).catch(function (err) {
callback(err.message, null);
callback(err.message || err, null);
});
},
@ -101,7 +101,7 @@ var Getters = {
callback(null, videos);
}).catch(function (err) {
callback(err.message, null);
callback(err.message || err, null);
});
},
@ -126,7 +126,7 @@ var Getters = {
callback(null, videos);
}).catch(function (err) {
callback(err.message, null);
callback(err.message || err, null);
});
},