Update ui/src/app/services/downloads.service.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
4ce5a5f28b
commit
0acffbf190
1 changed files with 4 additions and 2 deletions
|
|
@ -152,8 +152,10 @@ export class DownloadsService {
|
||||||
const defaultAutoStart = true;
|
const defaultAutoStart = true;
|
||||||
const defaultSplitByChapters = false;
|
const defaultSplitByChapters = false;
|
||||||
const defaultChapterTemplate = this.configuration['OUTPUT_TEMPLATE_CHAPTER'];
|
const defaultChapterTemplate = this.configuration['OUTPUT_TEMPLATE_CHAPTER'];
|
||||||
const defaultRetryFailed = false;
|
const configuredRetryFailed = this.configuration['DEFAULT_RETRY_FAILED'];
|
||||||
const defaultMaxRetryAttempts = 3;
|
const defaultRetryFailed = typeof configuredRetryFailed === 'boolean' ? configuredRetryFailed : false;
|
||||||
|
const configuredMaxRetryAttempts = this.configuration['DEFAULT_MAX_RETRY_ATTEMPTS'];
|
||||||
|
const defaultMaxRetryAttempts = typeof configuredMaxRetryAttempts === 'number' ? configuredMaxRetryAttempts : 3;
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.add(url, defaultQuality, defaultFormat, defaultFolder, defaultCustomNamePrefix, defaultPlaylistStrictMode, defaultPlaylistItemLimit, defaultAutoStart, defaultSplitByChapters, defaultChapterTemplate, defaultRetryFailed, defaultMaxRetryAttempts)
|
this.add(url, defaultQuality, defaultFormat, defaultFolder, defaultCustomNamePrefix, defaultPlaylistStrictMode, defaultPlaylistItemLimit, defaultAutoStart, defaultSplitByChapters, defaultChapterTemplate, defaultRetryFailed, defaultMaxRetryAttempts)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue