16 lines
307 B
JavaScript
16 lines
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
|
||
|
}
|