diff --git a/ui/src/app/app.html b/ui/src/app/app.html index 7081047..fb87050 100644 --- a/ui/src/app/app.html +++ b/ui/src/app/app.html @@ -384,7 +384,6 @@ (click)="folderClick$.next($any($event.target).value)" #folderTypeahead="ngbTypeahead" [disabled]="addInProgress || subscribeInProgress || downloads.loading"> -
@@ -450,12 +449,17 @@
Behavior
-
-
- +
+ Auto Start +
@@ -500,7 +504,14 @@ - +
diff --git a/ui/src/app/app.ts b/ui/src/app/app.ts index d145db7..a10ff6e 100644 --- a/ui/src/app/app.ts +++ b/ui/src/app/app.ts @@ -104,7 +104,6 @@ export class App implements AfterViewInit, OnInit, OnDestroy { cookieUploadInProgress = false; themes: Theme[] = Themes; activeTheme: Theme | undefined; - customDirs$!: Observable; readonly folderTypeahead = viewChild('folderTypeahead'); folderFocus$ = new Subject(); folderClick$ = new Subject(); @@ -310,7 +309,6 @@ export class App implements AfterViewInit, OnInit, OnDestroy { this.getConfiguration(); this.getYtdlOptionsUpdateTime(); this.getYtdlOptionPresets(); - this.customDirs$ = this.getMatchingCustomDir(); this.setTheme(this.activeTheme!); this.colorSchemeMediaQuery.addEventListener('change', this.onColorSchemeChanged); @@ -377,13 +375,6 @@ export class App implements AfterViewInit, OnInit, OnDestroy { return this.downloads.configuration['ALLOW_YTDL_OPTIONS_OVERRIDES'] === true; } - allowCustomDir(tag: string) { - if (this.downloads.configuration['CREATE_CUSTOM_DIRS']) { - return tag; - } - return false; - } - searchFolder: OperatorFunction = (text$: Observable) => { const debouncedText$ = text$.pipe(debounceTime(150), distinctUntilChanged()); const clicksWithClosedPopup$ = this.folderClick$.pipe( @@ -404,23 +395,6 @@ export class App implements AfterViewInit, OnInit, OnDestroy { return this.downloadType === 'audio'; } - getMatchingCustomDir() : Observable { - return this.downloads.customDirsChanged.asObservable().pipe( - // eslint-disable-next-line @typescript-eslint/no-explicit-any - map((output: any) => { - // Keep logic consistent with app/ytdl.py - if (this.isAudioType()) { - console.debug("Showing audio-specific download directories"); - return output["audio_download_dir"]; - } else { - console.debug("Showing default download directories"); - return output["download_dir"]; - } - }), - distinctUntilChanged((prev, curr) => JSON.stringify(prev) === JSON.stringify(curr)) - ); - } - getYtdlOptionsUpdateTime() { this.downloads.ytdlOptionsChanged.pipe(takeUntilDestroyed(this.destroyRef)).subscribe({ // eslint-disable-next-line @typescript-eslint/no-explicit-any