Shoko.Server/API/v3/Controllers/FileController.cs
/// <summary>
/// Mark or unmark a file as ignored.
/// </summary>
/// <param name="fileID">VideoLocal ID</param>
/// <param name="value">Thew new ignore value.</param>
/// <returns></returns>
Mark or unmark a file as ignored.
Mark or unmark a file as ignored .
[HttpPatch("{fileID}/Ignore")]
        public ActionResult IgnoreFile(int fileID, [FromQuery] bool value = true)
        {
            var vl = RepoFactory.VideoLocal.GetByID(fileID);
            if (vl == null) return NotFound();
            vl.IsIgnored = value ? 1 : 0;
            RepoFactory.VideoLocal.Save(vl, false);
            return Ok();
        }
[ HttpPatch ( " " ) ] public ActionResult IgnoreFile ( int fileID , [ FromQuery ] bool value = true ) { var vl = RepoFactory . VideoLocal . GetByID ( fileID ) ; if ( vl == null ) return NotFound ( ) ; vl . IsIgnored = value ? 1 : 0 ; RepoFactory . VideoLocal . Save ( vl , false ) ; return Ok ( ) ; }
Mark or unmark a file as ignored.
Mark or unmark a file as ignored .
None
fileID
int
None
bool
[FromQuery]
value
Thew new ignore value.
Thew new ignore value .