From: Chocobozzz Date: Tue, 11 Jul 2017 14:01:56 +0000 (+0200) Subject: Use global uuid instead of remoteId for videos X-Git-Tag: v0.0.1-alpha~370 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0a6658fdcbd779ada8f3758048c326e997902d5a;p=oweals%2Fpeertube.git Use global uuid instead of remoteId for videos --- diff --git a/client/src/app/shared/video-abuse/video-abuse.service.ts b/client/src/app/shared/video-abuse/video-abuse.service.ts index 32f13b430..636a02084 100644 --- a/client/src/app/shared/video-abuse/video-abuse.service.ts +++ b/client/src/app/shared/video-abuse/video-abuse.service.ts @@ -22,7 +22,7 @@ export class VideoAbuseService { return new RestDataSource(this.authHttp, VideoAbuseService.BASE_VIDEO_ABUSE_URL + 'abuse') } - reportVideo (id: string, reason: string) { + reportVideo (id: number, reason: string) { const body = { reason } 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