const uuid = "<task_uuid>";
const task = library.query.tasks.one(uuid).fetch();
const tasks = library.query.tasks.many().fetch(); //currently no filters are supported
const uuid = "<task_uuid>";
const callback = (progress) =>{
console.log(progress);
}
const cancelToken = { cancel : false }
await library.query.tasks.one(uuid).run(callback, cancelToken);
To stop a transcode you need to set the cancel flag to true. The process will exit at the next possible opportunity.
cancelToken.cancel = true;
const uuid = "<transcode_uuid>";
library.query.tasks.one(uuid).delete();
library.query.tasks.post({
label: string;
jobs: {
source: string;
destinations?: string[] | null
}[]
})
library.query.tasks.generate({
label: string;
source: string;
matchExpression?: string;
types?: string[];
destinations: string[];
settings?: {
preserveFolderStructure?: boolean;
createSubFolder?: boolean;
ignoreDuplicates?: boolean;
};
})