From efcd6f2e625c1c5d06025f27a2bf3a84d3f8b483 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 22 Nov 2019 17:27:46 +0100 Subject: Fix fragmented download URL --- client/src/app/shared/video/video-details.model.ts | 2 ++ server/controllers/static.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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) ) -- cgit v1.2.3