From c3cce2f4ead022eabfdc9a7753f6b6d89abe7c3f Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Wed, 30 Oct 2024 16:25:43 +0100 Subject: [PATCH] misc: add get method for scrobble endpoint in APIv3 because it doesn't require a body and I need it to be get for the vlc scrobbler. --- Shoko.Server/API/v3/Controllers/FileController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);