Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix fragmented download URL

Chocobozzzefcd6f2e625c
diff --git a/client/src/app/shared/video/video-details.model.ts b/client/src/app/shared/video/video-details.model.ts
index c2a85d8e8b..14347a109d 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 06123518f0..7c900be926 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)
)