X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fvideo%2Fvideo-details.model.ts;h=14347a109da8478747c0127e5c18262a616795ff;hb=2ad9dcda240ee843c5e4a5b98cc94f7b2aab2c89;hp=e4d443a06ae88f5bed879946b92e1580c447ef29;hpb=b91bc1d1f3591c35ab4426f6ab594b4bd9f1ef62;p=oweals%2Fpeertube.git diff --git a/client/src/app/shared/video/video-details.model.ts b/client/src/app/shared/video/video-details.model.ts index e4d443a06..14347a109 100644 --- a/client/src/app/shared/video/video-details.model.ts +++ b/client/src/app/shared/video/video-details.model.ts @@ -55,4 +55,10 @@ export class VideoDetails extends Video implements VideoDetailsServerModel { hasHlsPlaylist () { return !!this.getHlsPlaylist() } + + getFiles () { + if (this.files.length === 0) return this.getHlsPlaylist().files + + return this.files + } }