Shoko.Server/API/v3/Controllers/FileController.cs
/// <summary>
/// Get the MediaInfo model for file with VideoLocal ID
/// </summary>
/// <param name="fileID">Shoko ID</param>
/// <returns></returns>
Get the MediaInfo model for file with VideoLocal ID
Get the MediaInfo model for file with VideoLocal ID
[HttpGet("{fileID}/MediaInfo")]
        public ActionResult<MediaContainer> GetFileMediaInfo(int fileID)
        {
            var videoLocal = RepoFactory.VideoLocal.GetByID(fileID);
            if (videoLocal == null) return BadRequest("No File with ID");
            return Models.Shoko.File.GetMedia(fileID);
        }
[ HttpGet ( " " ) ] public ActionResult < MediaContainer > GetFileMediaInfo ( int fileID ) { var videoLocal = RepoFactory . VideoLocal . GetByID ( fileID ) ; if ( videoLocal == null ) return BadRequest ( " " ) ; return Models . Shoko . File . GetMedia ( fileID ) ; }
Get the MediaInfo model for file with VideoLocal ID
Get the MediaInfo model for file with VideoLocal ID
None
fileID
int
None