Video and Archive can be tagged when downloading.

This commit is contained in:
Roland 2023-04-03 09:34:42 -06:00
parent a893d44094
commit ede9d2236b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
11 changed files with 118 additions and 49 deletions

View file

@ -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;
}