VideoChain-API / src /scheduler /getVideoStatus.mts
jbilcke-hf's picture
jbilcke-hf HF staff
add "movie director assistant" LLM step
e4e0e54
raw
history blame
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"
}