diff --git a/client/src/app/shared/video/video-details.model.ts b/client/src/app/shared/video/video-details.model.ts index c2a85d8e8..14347a109 100644 --- a/client/src/app/shared/video/video-details.model.ts +++ b/client/src/app/shared/video/video-details.model.ts @@ -58,5 +58,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel { getFiles () { if (this.files.length === 0) return this.getHlsPlaylist().files + + return this.files } } diff --git a/server/controllers/static.ts b/server/controllers/static.ts index 06123518f..7c900be92 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts @@ -67,7 +67,7 @@ staticRouter.use( ) staticRouter.use( - STATIC_DOWNLOAD_PATHS.HLS_VIDEOS + ':id-:resolution([0-9]+).:extension', + STATIC_DOWNLOAD_PATHS.HLS_VIDEOS + ':id-:resolution([0-9]+)-fragmented.:extension', asyncMiddleware(videosGetValidator), asyncMiddleware(downloadHLSVideoFile) )