-function getFormatedVideo (videoObj) {
- const formatedVideo = {
- id: videoObj._id,
- name: videoObj.name,
- description: videoObj.description,
- podUrl: videoObj.podUrl.replace(/^https?:\/\//, ''),
- isLocal: videos.getVideoState(videoObj).owned,
- magnetUri: videoObj.magnetUri,
- author: videoObj.author,
- duration: videoObj.duration,
- tags: videoObj.tags,
- thumbnailPath: constants.THUMBNAILS_STATIC_PATH + '/' + videoObj.thumbnail,
- createdDate: videoObj.createdDate
- }
-
- return formatedVideo
-}
-
-function getFormatedVideos (videosObj, totalVideos) {