aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video/video.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-11 15:10:13 +0200
committerChocobozzz <me@florianbigard.com>2018-05-11 15:25:51 +0200
commit0f320037e689b2778959c12ddd4ce790f6e4ae4f (patch)
tree425acaa4345442388901c833275bb76b42a8a268 /client/src/app/shared/video/video.model.ts
parent9675333decd0b89b73a4fc67b39272f7296bfe3f (diff)
downloadPeerTube-0f320037e689b2778959c12ddd4ce790f6e4ae4f.tar.gz
PeerTube-0f320037e689b2778959c12ddd4ce790f6e4ae4f.tar.zst
PeerTube-0f320037e689b2778959c12ddd4ce790f6e4ae4f.zip
Add ability to update a video channel
Diffstat (limited to 'client/src/app/shared/video/video.model.ts')
-rw-r--r--client/src/app/shared/video/video.model.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/src/app/shared/video/video.model.ts b/client/src/app/shared/video/video.model.ts
index f56eecaeb..48d562f9c 100644
--- a/client/src/app/shared/video/video.model.ts
+++ b/client/src/app/shared/video/video.model.ts
@@ -45,6 +45,16 @@ export class Video implements VideoServerModel {
45 avatar: Avatar 45 avatar: Avatar
46 } 46 }
47 47
48 channel: {
49 id: number
50 uuid: string
51 name: string
52 displayName: string
53 url: string
54 host: string
55 avatar: Avatar
56 }
57
48 private static createDurationString (duration: number) { 58 private static createDurationString (duration: number) {
49 const hours = Math.floor(duration / 3600) 59 const hours = Math.floor(duration / 3600)
50 const minutes = Math.floor(duration % 3600 / 60) 60 const minutes = Math.floor(duration % 3600 / 60)