Renaming RecursiveHTMLDownloader to ScrapeHTMLDownloader.

This commit is contained in:
Roland 2023-08-31 08:31:19 -06:00
parent 9bb0ec6472
commit 65625e30c1
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
4 changed files with 19 additions and 19 deletions

View file

@ -430,7 +430,7 @@ class RSSDownload extends ChannelDownload {
}
}
class RecursiveDownload extends Downloader {
class ScrapeDownloader extends Downloader {
constructor(props) {
super(props);
@ -460,7 +460,7 @@ class RecursiveDownload extends Downloader {
try {
let response = await postDownload(
urls,
'recursive_html',
'scrape_html',
null,
'file',
null,
@ -498,7 +498,7 @@ class RecursiveDownload extends Downloader {
const complete = urls && depth && validSuffix && max_pages && destination;
return <Form>
<Header as='h4'><Icon name='file alternate' color='red'/> Recursive File Downloader</Header>
<Header as='h4'><Icon name='file alternate' color='red'/> Scrape File Downloader</Header>
<p>Search each of the URLs for files matching the suffix (.pdf, etc.).</p>
@ -621,9 +621,9 @@ export function DownloadMenu({onOpen, disabled}) {
/>
<Button
color='red'
content='Recursive'
content='Scrape'
disabled={disabled}
onClick={() => localOnOpen('recursive')}
onClick={() => localOnOpen('scrape')}
style={{marginBottom: '1em'}}
/>
</>);
@ -654,9 +654,9 @@ export function DownloadMenu({onOpen, disabled}) {
withSearchDirectory={true}
destinationRequired={true}
withTags={true}/>,
recursive: <RecursiveDownload
scrape: <ScrapeDownloader
clearSelected={clearSelected}
downloader='recursive'
downloader='scrape'
withSearchDirectory={true}
destinationRequired={true}
/>,