diff --git a/Shoko.Server/API/v3/Controllers/FileController.cs b/Shoko.Server/API/v3/Controllers/FileController.cs index 54e1db87d..5016d5e0e 100644 --- a/Shoko.Server/API/v3/Controllers/FileController.cs +++ b/Shoko.Server/API/v3/Controllers/FileController.cs @@ -703,10 +703,10 @@ public async Task SetWatchedStatusOnFile([FromRoute, Range(1, int. /// True if file should be marked as watched, false if file should be unmarked, or null if it shall not be updated. /// Number of ticks into the video to resume from, or null if it shall not be updated. /// + [HttpGet("{fileID}/Scrobble")] [HttpPatch("{fileID}/Scrobble")] public async Task ScrobbleFileAndEpisode([FromRoute, Range(1, int.MaxValue)] int fileID, [FromQuery(Name = "event")] string eventName = null, [FromQuery] int? episodeID = null, [FromQuery] bool? watched = null, [FromQuery] long? resumePosition = null) { - var file = RepoFactory.VideoLocal.GetByID(fileID); if (file == null) return NotFound(FileNotFoundWithFileID);