Fix fragmented download URL

This commit is contained in:
Chocobozzz 2019-11-22 17:27:46 +01:00
parent 0f2f274c98
commit efcd6f2e62
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 1 deletions

View 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
}
}

View 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)
)