From 7d9becdde6f9f5eeab9debf4ec45b9634ab87eed Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 20 Nov 2023 09:43:21 -0700 Subject: [PATCH] Downloading requires a list of URLs. --- app/src/components/Archive.js | 2 +- app/src/components/Download.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {