mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-18 10:40:57 +03:00
Subscriptions now support multi-user-mode
Fixed bug where playlist subscription downloads would fail due to a mislabeled parameter Components that are routes now make sure auth is finished before sending requests to the backend
This commit is contained in:
@@ -196,6 +196,7 @@ export class MainComponent implements OnInit {
|
||||
|
||||
selectedQuality = '';
|
||||
formats_loading = false;
|
||||
config_loaded = false;
|
||||
|
||||
@ViewChild('urlinput', { read: ElementRef }) urlInput: ElementRef;
|
||||
@ViewChildren('audiofilecard') audioFileCards: QueryList<FileCardComponent>;
|
||||
@@ -294,7 +295,16 @@ export class MainComponent implements OnInit {
|
||||
|
||||
// app initialization.
|
||||
ngOnInit() {
|
||||
this.configLoad();
|
||||
if (this.postsService.config) {
|
||||
this.configLoad();
|
||||
} else {
|
||||
this.postsService.config_reloaded.subscribe(changed => {
|
||||
if (changed && !this.config_loaded) {
|
||||
this.config_loaded = true;
|
||||
this.configLoad();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.postsService.config_reloaded.subscribe(changed => {
|
||||
if (changed) {
|
||||
|
||||
Reference in New Issue
Block a user