Fix a bug with vid.me and streamable.com error handling

This commit is contained in:
calzoneman 2016-08-02 22:40:29 -07:00
parent 88c42af139
commit 8ebfb431ce
1 changed files with 4 additions and 0 deletions

View File

@ -561,6 +561,8 @@ var Getters = {
const media = new Media(video.id, video.title, video.duration,
"vm", video.meta);
process.nextTick(callback, false, media);
}).catch(function (err) {
callback(err.message || err, null);
});
},
@ -575,6 +577,8 @@ var Getters = {
const media = new Media(video.id, video.title, video.duration,
"sb", video.meta);
process.nextTick(callback, false, media);
}).catch(function (err) {
callback(err.message || err, null);
});
}
};