mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-20 03:30:55 +03:00
Updated video playing/sharing logic to support sharing of playlists in multi user mode and when multi user mode is disabled
Fixed bug that caused normal archive to be used in multi-user mode Updated login logic when username is not found or user file is missing Fixed bug that prevented playlist sharing from working Added ability to use timestamps when sharing videos
This commit is contained in:
@@ -258,9 +258,9 @@ export class PostsService implements CanActivate {
|
||||
thumbnailURL: thumbnailURL}, this.httpOptions);
|
||||
}
|
||||
|
||||
getPlaylist(playlistID, type) {
|
||||
getPlaylist(playlistID, type, uuid = null) {
|
||||
return this.http.post(this.path + 'getPlaylist', {playlistID: playlistID,
|
||||
type: type}, this.httpOptions);
|
||||
type: type, uuid: uuid}, this.httpOptions);
|
||||
}
|
||||
|
||||
updatePlaylist(playlistID, fileNames, type) {
|
||||
@@ -335,6 +335,7 @@ export class PostsService implements CanActivate {
|
||||
this.permissions = permissions;
|
||||
this.available_permissions = available_permissions;
|
||||
this.token = token;
|
||||
this.setInitialized();
|
||||
|
||||
localStorage.setItem('jwt_token', this.token);
|
||||
|
||||
@@ -365,7 +366,6 @@ export class PostsService implements CanActivate {
|
||||
call.subscribe(res => {
|
||||
if (res['token']) {
|
||||
this.afterLogin(res['user'], res['token'], res['permissions'], res['available_permissions']);
|
||||
this.setInitialized();
|
||||
}
|
||||
}, err => {
|
||||
if (err.status === 401) {
|
||||
|
||||
Reference in New Issue
Block a user