mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-24 05:30: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:
@@ -74,6 +74,8 @@ export class PostsService implements CanActivate {
|
||||
};
|
||||
this.jwtAuth();
|
||||
}
|
||||
} else {
|
||||
this.config_reloaded.next(true);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -107,7 +109,7 @@ export class PostsService implements CanActivate {
|
||||
const result = !this.debugMode ? res['config_file'] : res;
|
||||
if (result) {
|
||||
this.config = result['YoutubeDLMaterial'];
|
||||
this.config_reloaded = true;
|
||||
this.config_reloaded.next(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -348,6 +350,7 @@ export class PostsService implements CanActivate {
|
||||
call.subscribe(res => {
|
||||
if (res['token']) {
|
||||
this.afterLogin(res['user'], res['token']);
|
||||
this.config_reloaded.next(true);
|
||||
}
|
||||
}, err => {
|
||||
if (err.status === 401) {
|
||||
|
||||
Reference in New Issue
Block a user