diff --git a/app/src/components/Archive.js b/app/src/components/Archive.js index fecb705b..8fde736b 100644 --- a/app/src/components/Archive.js +++ b/app/src/components/Archive.js @@ -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', diff --git a/app/src/components/Download.js b/app/src/components/Download.js index 92a84472..93c887a4 100644 --- a/app/src/components/Download.js +++ b/app/src/components/Download.js @@ -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 {