mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Downloading requires a list of URLs.
This commit is contained in:
parent
db79a0937f
commit
7d9becdde6
2 changed files with 2 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue