nfp_sites/filadelfia_web/api/video/util.mjs

16 lines
307 B
JavaScript
Raw Normal View History

2023-11-09 09:44:04 +00:00
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
}