mirror of https://github.com/Chocobozzz/PeerTube
Fix fragmented download URL
parent
0f2f274c98
commit
efcd6f2e62
|
@ -58,5 +58,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel {
|
||||||
|
|
||||||
getFiles () {
|
getFiles () {
|
||||||
if (this.files.length === 0) return this.getHlsPlaylist().files
|
if (this.files.length === 0) return this.getHlsPlaylist().files
|
||||||
|
|
||||||
|
return this.files
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ staticRouter.use(
|
||||||
)
|
)
|
||||||
|
|
||||||
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(videosGetValidator),
|
||||||
asyncMiddleware(downloadHLSVideoFile)
|
asyncMiddleware(downloadHLSVideoFile)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue