Fix fragmented download URL
This commit is contained in:
parent
0f2f274c98
commit
efcd6f2e62
2 changed files with 3 additions and 1 deletions
|
@ -58,5 +58,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel {
|
|||
|
||||
getFiles () {
|
||||
if (this.files.length === 0) return this.getHlsPlaylist().files
|
||||
|
||||
return this.files
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue