mirror of https://github.com/calzoneman/sync.git
Fix a bug with vid.me and streamable.com error handling
This commit is contained in:
parent
88c42af139
commit
8ebfb431ce
|
@ -561,6 +561,8 @@ var Getters = {
|
||||||
const media = new Media(video.id, video.title, video.duration,
|
const media = new Media(video.id, video.title, video.duration,
|
||||||
"vm", video.meta);
|
"vm", video.meta);
|
||||||
process.nextTick(callback, false, media);
|
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,
|
const media = new Media(video.id, video.title, video.duration,
|
||||||
"sb", video.meta);
|
"sb", video.meta);
|
||||||
process.nextTick(callback, false, media);
|
process.nextTick(callback, false, media);
|
||||||
|
}).catch(function (err) {
|
||||||
|
callback(err.message || err, null);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue