if (fetchType === 'only-video') return VideoModel.loadByUrl(url)
}
-function getVideo (res: Response) {
- return res.locals.videoAll || res.locals.onlyVideo || res.locals.onlyVideoWithRights || res.locals.videoId
-}
-
function getVideoWithAttributes (res: Response) {
return res.locals.videoAll || res.locals.onlyVideo || res.locals.onlyVideoWithRights
}
VideoFetchType,
VideoFetchByUrlType,
fetchVideo,
- getVideo,
getVideoWithAttributes,
fetchVideoByUrl
}