mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 17:36:18 -05:00
Videos display comments. User can download comments using Refresh button.
This commit is contained in:
parent
ea4d640100
commit
f865d9fb0f
7 changed files with 270 additions and 14 deletions
|
|
@ -172,6 +172,22 @@ export async function deleteVideos(videoIds) {
|
|||
}
|
||||
}
|
||||
|
||||
export async function downloadVideoMetadata(videoUrl, destination) {
|
||||
return await postDownload(
|
||||
[videoUrl],
|
||||
'video',
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
destination,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
true,
|
||||
);
|
||||
}
|
||||
|
||||
export async function getDirectories(search_str) {
|
||||
let form_data = {'search_str': search_str || null};
|
||||
let response = await apiPost(`${API_URI}/files/directories`, form_data);
|
||||
|
|
@ -450,6 +466,7 @@ export async function postDownload(
|
|||
depth,
|
||||
suffix,
|
||||
max_pages,
|
||||
doNotDownload,
|
||||
) {
|
||||
if (!downloader) {
|
||||
toast({
|
||||
|
|
@ -477,7 +494,10 @@ export async function postDownload(
|
|||
if (tagNames) {
|
||||
body['tag_names'] = tagNames;
|
||||
}
|
||||
let response = await apiPost(`${API_URI}/download`, body);
|
||||
if (doNotDownload) {
|
||||
body['do_not_download'] = doNotDownload;
|
||||
}
|
||||
const response = await apiPost(`${API_URI}/download`, body);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue