]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix fragmented download URL
authorChocobozzz <me@florianbigard.com>
Fri, 22 Nov 2019 16:27:46 +0000 (17:27 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 25 Nov 2019 09:59:50 +0000 (10:59 +0100)
client/src/app/shared/video/video-details.model.ts
server/controllers/static.ts

index c2a85d8e8bcc248d3526e6864acaa362d9774d2f..14347a109da8478747c0127e5c18262a616795ff 100644 (file)
@@ -58,5 +58,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel {
 
   getFiles () {
     if (this.files.length === 0) return this.getHlsPlaylist().files
+
+    return this.files
   }
 }
index 06123518f0b275b11a0f02cd6ca934711b3bc429..7c900be9268ec4e286db0b17959920535a80891c 100644 (file)
@@ -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)
 )