Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 361 Bytes
e4e0e54 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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"
} |