mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 14:19:56 -05:00
Requiring downloader name to be specified.
This commit is contained in:
parent
5692ddb20d
commit
55cf76a884
15 changed files with 215 additions and 320 deletions
|
|
@ -412,6 +412,16 @@ export async function getArchive(archiveId) {
|
|||
}
|
||||
|
||||
export async function postDownload(urls, downloader, frequency, sub_downloader, excludedURLs, destination) {
|
||||
if (!downloader) {
|
||||
toast({
|
||||
type: 'error',
|
||||
title: 'Failed to submit download',
|
||||
description: 'downloader is required, but was not provided',
|
||||
time: 5000,
|
||||
})
|
||||
throw new Error('downloader is required, but was not provided');
|
||||
}
|
||||
|
||||
let body = {
|
||||
urls: urls,
|
||||
downloader: downloader,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue