Add note to config template, fix improper err callback
This commit is contained in:
parent
5522628363
commit
976228683b
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue