aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/shared
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos/shared')
-rw-r--r--client/src/app/videos/shared/video.model.ts2
-rw-r--r--client/src/app/videos/shared/video.service.ts2
2 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts
index 0cf4039df..e897eb175 100644
--- a/client/src/app/videos/shared/video.model.ts
+++ b/client/src/app/videos/shared/video.model.ts
@@ -21,6 +21,7 @@ export class Video implements VideoServerModel {
21 podHost: string; 21 podHost: string;
22 tags: string[]; 22 tags: string[];
23 thumbnailPath: string; 23 thumbnailPath: string;
24 thumbnailUrl: string;
24 views: number; 25 views: number;
25 likes: number; 26 likes: number;
26 dislikes: number; 27 dislikes: number;
@@ -80,6 +81,7 @@ export class Video implements VideoServerModel {
80 this.podHost = hash.podHost; 81 this.podHost = hash.podHost;
81 this.tags = hash.tags; 82 this.tags = hash.tags;
82 this.thumbnailPath = hash.thumbnailPath; 83 this.thumbnailPath = hash.thumbnailPath;
84 this.thumbnailUrl = API_URL + hash.thumbnailPath;
83 this.views = hash.views; 85 this.views = hash.views;
84 this.likes = hash.likes; 86 this.likes = hash.likes;
85 this.dislikes = hash.dislikes; 87 this.dislikes = hash.dislikes;
diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts
index ef683dea6..a53ea1064 100644
--- a/client/src/app/videos/shared/video.service.ts
+++ b/client/src/app/videos/shared/video.service.ts
@@ -20,7 +20,7 @@ import { Video } from './video.model';
20 20
21@Injectable() 21@Injectable()
22export class VideoService { 22export class VideoService {
23 private static BASE_VIDEO_URL = '/api/v1/videos/'; 23 private static BASE_VIDEO_URL = API_URL + '/api/v1/videos/';
24 24
25 videoCategories: Array<{ id: number, label: string }> = []; 25 videoCategories: Array<{ id: number, label: string }> = [];
26 videoLicences: Array<{ id: number, label: string }> = []; 26 videoLicences: Array<{ id: number, label: string }> = [];