Shoko.Server/API/v3/Controllers/FileController.cs
/// <summary>
/// Get the AniDB details for file with Shoko ID
/// </summary>
/// <param name="fileID">Shoko ID</param>
/// <returns></returns>
Get the AniDB details for file with Shoko ID
Get the AniDB details for file with Shoko ID
[HttpGet("{fileID}/AniDB")]
        public ActionResult<File.AniDB> GetFileAniDBDetails(int fileID)
        {
            var videoLocal = RepoFactory.VideoLocal.GetByID(fileID);
            if (videoLocal == null) return BadRequest("No File with ID");
            var anidb = videoLocal.GetAniDBFile();
            if (anidb == null) return BadRequest("AniDB data not found");
            return Models.Shoko.File.GetAniDBInfo(fileID);
        }
[ HttpGet ( " " ) ] public ActionResult < File . AniDB > GetFileAniDBDetails ( int fileID ) { var videoLocal = RepoFactory . VideoLocal . GetByID ( fileID ) ; if ( videoLocal == null ) return BadRequest ( " " ) ; var anidb = videoLocal . GetAniDBFile ( ) ; if ( anidb == null ) return BadRequest ( " " ) ; return Models . Shoko . File . GetAniDBInfo ( fileID ) ; }
Get the AniDB details for file with Shoko ID
Get the AniDB details for file with Shoko ID
None
fileID
int
None