mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 11:26:25 -05:00
Creating Video.ffprobe_json column which stores ffprobe information about the video file. Creating find_corrupt_videos.py script which automatically re-downloads videos which do not have both video and audio streams.
This commit is contained in:
parent
097c3143e1
commit
36083200e6
39 changed files with 598 additions and 172 deletions
|
|
@ -539,23 +539,17 @@ export async function filesSearch(offset, limit, searchStr, mimetypes, model, ta
|
|||
}
|
||||
}
|
||||
|
||||
export async function refreshFiles() {
|
||||
return await apiPost(`${API_URI}/files/refresh`);
|
||||
}
|
||||
|
||||
export async function refreshDirectoryFiles(paths) {
|
||||
let body = {paths: paths};
|
||||
try {
|
||||
return await apiPost(`${API_URI}/files/refresh`, body);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
toast({
|
||||
type: 'error',
|
||||
title: 'Unable to refresh directory',
|
||||
description: 'Cannot refresh the files in the directory. See server logs.',
|
||||
time: 5000,
|
||||
});
|
||||
export async function refreshFiles(paths) {
|
||||
let response;
|
||||
if (paths && paths.constructor === Array) {
|
||||
const body = {paths};
|
||||
console.debug(`Refreshing: ${paths}`);
|
||||
response = await apiPost(`${API_URI}/files/refresh`, body);
|
||||
} else {
|
||||
console.debug(`Refreshing all files`);
|
||||
response = await apiPost(`${API_URI}/files/refresh`);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
export async function makeDirectory(path) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue