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:
Roland 2026-02-20 14:37:58 -07:00
parent 48a81eccc2
commit 0c059865e2
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
30 changed files with 1678 additions and 552 deletions

View file

@ -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}/>

View file

@ -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={<>