Skip to content

Commit

Permalink
Re-enable chunked files
Browse files Browse the repository at this point in the history
  • Loading branch information
da3dsoul authored Nov 21, 2023
1 parent 6864ebb commit 7101c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shoko.Server/API/v3/Controllers/FileController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ public ActionResult GetFileStream([FromRoute] int fileID, [FromRoute] string fil
return scrobbleFile;
}

var physicalFile = PhysicalFile(fileInfo.FullName, contentType);
var physicalFile = PhysicalFile(fileInfo.FullName, contentType, enableRangeProcessing: true);
physicalFile.FileDownloadName = filename ?? fileInfo.Name;
return physicalFile;
}
Expand Down Expand Up @@ -1463,7 +1463,7 @@ public ActionResult<ListResult<File>> GetExactDuplicateFiles([FromQuery] [Range(
/// <returns></returns>
[Obsolete("Use the universal file endpoint instead.")]
[HttpGet("Linked")]
public ActionResult<ListResult<File>> GetManuellyLinkedFiles([FromQuery] [Range(0, 1000)] int pageSize = 100, [FromQuery] [Range(1, int.MaxValue)] int page = 1, [FromQuery] bool includeXRefs = true)
public ActionResult<ListResult<File>> GetManuallyLinkedFiles([FromQuery] [Range(0, 1000)] int pageSize = 100, [FromQuery] [Range(1, int.MaxValue)] int page = 1, [FromQuery] bool includeXRefs = true)
{
return RepoFactory.VideoLocal.GetManuallyLinkedVideos()
.ToListResult(file => new File(HttpContext, file, includeXRefs), page, pageSize);
Expand Down

0 comments on commit 7101c40

Please sign in to comment.