unchained / src /scheduler /getVideoStatus.mts
barton
Duplicate from jbilcke-hf/VideoChain-API
53aa97a
raw
history blame contribute delete
361 Bytes
import { Video, VideoStatus } from "../types.mts"
import { getVideo } from "./getVideo.mts"
export const getVideoStatus = async (video: Video): Promise<VideoStatus> => {
try {
const { status } = await getVideo(video.ownerId, video.id)
return status
} catch (err) {
console.log(`failed to get the video status.. weird`)
}
return "unknown"
}