unchained / src /scheduler /getCompletedVideos.mts
barton
Duplicate from jbilcke-hf/VideoChain-API
53aa97a
raw
history blame contribute delete
372 Bytes
import { Video } from "../types.mts"
import { completedMetadataDirFilePath } from "../config.mts"
import { readVideoMetadataFiles } from "./readVideoMetadataFiles.mts"
export const getCompletedVideos = async (ownerId?: string): Promise<Video[]> => {
const completedVideos = await readVideoMetadataFiles(completedMetadataDirFilePath, ownerId)
return completedVideos
}