function run(url, cb) { var id = findId.run(url); return retriever(id, function (err, data){ if (err) return cb(err); if (!data.raw) { return cb(new Error('404')); } // Here the API expose three new objects: raw, thumb, username var info = { provider: 'vimeo', providerId: id, title: data.raw.title, description: data.raw.description, presenters: '', thumbS: data.thumb.s, thumbM: data.thumb.m, thumbL: data.thumb.l }; return cb(null, info); }); }
Video_Vimeo_Api.video = function (id, cb) { log.debug('Video_Vimeo_Api.video(' + id + ')'); vimeoApi(id, cb); };