mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 05:39:57 -05:00
Video and Archive can be tagged when downloading.
This commit is contained in:
parent
a893d44094
commit
ede9d2236b
11 changed files with 118 additions and 49 deletions
|
|
@ -411,7 +411,7 @@ export async function getArchive(archiveId) {
|
|||
}
|
||||
}
|
||||
|
||||
export async function postDownload(urls, downloader, frequency, sub_downloader, excludedURLs, destination) {
|
||||
export async function postDownload(urls, downloader, frequency, sub_downloader, excludedURLs, destination, tagNames) {
|
||||
if (!downloader) {
|
||||
toast({
|
||||
type: 'error',
|
||||
|
|
@ -432,6 +432,9 @@ export async function postDownload(urls, downloader, frequency, sub_downloader,
|
|||
if (sub_downloader) {
|
||||
body['sub_downloader'] = sub_downloader;
|
||||
}
|
||||
if (tagNames) {
|
||||
body['tag_names'] = tagNames;
|
||||
}
|
||||
let response = await apiPost(`${API_URI}/download`, body);
|
||||
return response;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue