mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-08 04:20:08 +03:00
Prevents login redirect for shared videos in multi user mode
This commit is contained in:
@@ -73,6 +73,8 @@ export class PostsService implements CanActivate {
|
||||
this.httpOptions.params = this.httpOptions.params.set('sessionID', this.session_id);
|
||||
});
|
||||
|
||||
const login_not_required = this.router.url !== '/player'
|
||||
|
||||
// get config
|
||||
this.loadNavItems().subscribe(res => {
|
||||
const result = !this.debugMode ? res['config_file'] : res;
|
||||
@@ -84,6 +86,8 @@ export class PostsService implements CanActivate {
|
||||
this.token = localStorage.getItem('jwt_token');
|
||||
this.httpOptions.params = this.httpOptions.params.set('jwt', this.token);
|
||||
this.jwtAuth();
|
||||
} else if (login_not_required) {
|
||||
this.setInitialized();
|
||||
} else {
|
||||
this.sendToLogin();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user