Creating RecursiveHTMLDownloader which recursively searches for files in the provided URLs.

This commit is contained in:
Roland 2023-08-30 20:19:32 -06:00
parent 1b4d4d7ad5
commit 6f43f1daa0
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
12 changed files with 377 additions and 15 deletions

View file

@ -439,7 +439,18 @@ export async function getArchive(archiveId) {
}
}
export async function postDownload(urls, downloader, frequency, sub_downloader, excludedURLs, destination, tagNames) {
export async function postDownload(
urls,
downloader,
frequency,
sub_downloader,
excludedURLs,
destination,
tagNames,
depth,
suffix,
max_pages,
) {
if (!downloader) {
toast({
type: 'error',
@ -456,6 +467,9 @@ export async function postDownload(urls, downloader, frequency, sub_downloader,
frequency: frequency || null,
excluded_urls: excludedURLs,
destination: destination || null,
depth: depth || null,
suffix: suffix || null,
max_pages: max_pages || null,
};
if (sub_downloader) {
body['sub_downloader'] = sub_downloader;