Shoko.Server/API/v3/Controllers/FileController.cs
/// <summary>
/// Mark a file as watched or unwatched. Use the "Scrobble" endpoint instead.
/// </summary>
/// <param name="fileID">VideoLocal ID. Watched Status is kept per file, no matter how many copies or where they are.</param>
/// <param name="watched">Is it watched?</param>
/// <returns></returns>
Mark a file as watched or unwatched. Use the "Scrobble" endpoint instead.
Mark a file as watched or unwatched . Use the " Scrobble " endpoint instead .
[HttpPost("{fileID}/watched/{watched}")]
        [Obsolete]
        public ActionResult SetWatchedStatusOnFile(int fileID, bool watched)
        {
            var file = RepoFactory.VideoLocal.GetByID(fileID);
            if (file == null) return BadRequest("Could not get the videolocal with ID: " + fileID);
            file.ToggleWatchedStatus(watched, User.JMMUserID);
            return Ok();
        }
[ HttpPost ( " " ) ] [ Obsolete ] public ActionResult SetWatchedStatusOnFile ( int fileID , bool watched ) { var file = RepoFactory . VideoLocal . GetByID ( fileID ) ; if ( file == null ) return BadRequest ( " " + fileID ) ; file . ToggleWatchedStatus ( watched , User . JMMUserID ) ; return Ok ( ) ; }
Mark a file as watched or unwatched.
Mark a file as watched or unwatched .
None
fileID
int
VideoLocal ID. Watched Status is kept per file, no matter how many copies or where they are.
VideoLocal ID . Watched Status is kept per file no matter how many copies or where they are .
watched
bool
None