nfp_sites/filadelfia_web/api/video/util.mjs
2023-11-09 09:45:37 +00:00

16 lines
No EOL
307 B
JavaScript

import { parseMediaAndBanner } from "../../base/util.mjs"
export function parseVideos(videos) {
for (let i = 0; i < videos.length; i++) {
parseVideo(videos[i])
}
return videos
}
export function parseVideo(video) {
if (!video) {
return null
}
parseMediaAndBanner(video)
return video
}