From 0a6658fdcbd779ada8f3758048c326e997902d5a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jul 2017 16:01:56 +0200 Subject: Use global uuid instead of remoteId for videos --- client/src/app/videos/shared/video.model.ts | 7 +++++-- client/src/app/videos/shared/video.service.ts | 18 +++++++++--------- 2 files changed, 14 insertions(+), 11 deletions(-) (limited to 'client/src/app/videos/shared') diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index f5e16fc13..9ed6a0641 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts @@ -14,7 +14,8 @@ export class Video implements VideoServerModel { description: string duration: number durationLabel: string - id: string + id: number + uuid: string isLocal: boolean magnetUri: string name: string @@ -51,7 +52,8 @@ export class Video implements VideoServerModel { language: number description: string, duration: number - id: string, + id: number, + uuid: string, isLocal: boolean, magnetUri: string, name: string, @@ -75,6 +77,7 @@ export class Video implements VideoServerModel { this.duration = hash.duration this.durationLabel = Video.createDurationString(hash.duration) this.id = hash.id + this.uuid = hash.uuid this.isLocal = hash.isLocal this.magnetUri = hash.magnetUri this.name = hash.name diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts index dc12c0637..67091a8d8 100644 --- a/client/src/app/videos/shared/video.service.ts +++ b/client/src/app/videos/shared/video.service.ts @@ -52,8 +52,8 @@ export class VideoService { return this.loadVideoAttributeEnum('languages', this.videoLanguages) } - getVideo (id: string): Observable