Downloading requires a list of URLs.

This commit is contained in:
Roland 2023-11-20 09:43:21 -07:00
parent db79a0937f
commit 7d9becdde6
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ function ArchivePage() {
navigate(-1);
}
const localUpdateArchive = async () => {
await postDownload(data.url, 'archive');
await postDownload([data.url], 'archive');
toast({
type: 'success',
title: 'Archive Downloading',

View file

@ -336,7 +336,7 @@ class RSSDownload extends ChannelDownload {
this.setState({error: 'URL is required'});
return;
}
let response = await postDownload(url, 'rss', frequency, sub_downloader, excludedURLs);
let response = await postDownload([url], 'rss', frequency, sub_downloader, excludedURLs);
if (response.status === 204) {
this.setState({pending: false, disabled: false, success: true, url: '', ready: false});
} else {