mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 13:19:58 -05:00
Updating download process to prevent rate limiting.
* Added encrypted cookies feature for use with yt-dlp. Decrypted cookies never touch the disk. * Adding sleep between all downloads to prevent rapid requests. * Channels are fully refreshed before downloading. * Removing superseded video browser profile.
This commit is contained in:
parent
48a81eccc2
commit
0c059865e2
30 changed files with 1678 additions and 552 deletions
|
|
@ -13,6 +13,7 @@ import {
|
|||
import {Link} from "react-router";
|
||||
import {
|
||||
APIButton,
|
||||
CookiesLockedMessage,
|
||||
DisableDownloadsToggle,
|
||||
ErrorMessage,
|
||||
formatFrequency,
|
||||
|
|
@ -24,6 +25,7 @@ import {
|
|||
Button as SButton,
|
||||
ButtonGroup,
|
||||
Checkbox,
|
||||
Icon,
|
||||
Label,
|
||||
Loader,
|
||||
PlaceholderLine,
|
||||
|
|
@ -625,6 +627,7 @@ export function DownloadsPage() {
|
|||
return <>
|
||||
<WROLModeMessage content='Downloads are disabled because WROL Mode is enabled.'/>
|
||||
<DisableDownloadsToggle/>
|
||||
<CookiesLockedMessage/>
|
||||
|
||||
<Header as='h1'>Downloads {pendingOnceDownloadsSpan}</Header>
|
||||
<OnceDownloadsTable downloads={onceDownloads} fetchDownloads={fetchDownloads}/>
|
||||
|
|
|
|||
|
|
@ -362,6 +362,7 @@ export function SettingsPage() {
|
|||
setDisabled(true);
|
||||
setPendingSave(true);
|
||||
newSettings.download_timeout = parseInt(newSettings.download_timeout);
|
||||
newSettings.download_wait = parseInt(newSettings.download_wait);
|
||||
newSettings.log_level = toApiLogLevel(newSettings.log_level);
|
||||
try {
|
||||
await saveSettings(newSettings);
|
||||
|
|
@ -448,6 +449,7 @@ export function SettingsPage() {
|
|||
archive_destination: settings.archive_destination,
|
||||
download_on_startup: settings.download_on_startup,
|
||||
download_timeout: settings.download_timeout,
|
||||
download_wait: settings.download_wait,
|
||||
hotspot_device: settings.hotspot_device,
|
||||
hotspot_on_startup: settings.hotspot_on_startup,
|
||||
hotspot_password: settings.hotspot_password,
|
||||
|
|
@ -564,6 +566,18 @@ export function SettingsPage() {
|
|||
/>
|
||||
</div>
|
||||
|
||||
<Form.Group inline>
|
||||
<Form.Input
|
||||
label={<>
|
||||
<b>Wait Between Downloads</b>
|
||||
<InfoPopup content='Number of seconds to wait after each download completes. This helps download "nicely" by being polite to servers. Set to 0 to disable waiting.'/>
|
||||
</>}
|
||||
value={state.download_wait}
|
||||
disabled={disabled || state.download_wait === null}
|
||||
onChange={(e, i) => handleTimeoutChange(e, 'download_wait', i.value)}
|
||||
/>
|
||||
</Form.Group>
|
||||
|
||||
<Form.Group inline>
|
||||
<Form.Input
|
||||
label={<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue