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