Shoko.Server/API/v3/Controllers/FileController.cs
/// <summary>
/// Get unrecognized files. <see cref="File.FileDetailed"/> is not relevant here, as there will be no links.
/// Use pageSize and page (index 0) in the query to enable pagination.
/// </summary>
/// <param name="pageSize">Limits the number of results per page. Default is 100. Set to 0 to disable the limit.</param>
/// <param name="page">Page number. Default is 0.</param>
Get unrecognized files.  is not relevant here, as there will be no links.
Use pageSize and page (index 0) in the query to enable pagination.
Get unrecognized files . is not relevant here as there will be no links . Use pageSize and page ( index 0 ) in the query to enable pagination .
[HttpGet("Unrecognized")]
        public List<File> GetUnrecognizedFiles(int pageSize = 100, int page = 0)
        {
            if (pageSize <= 0)
                return RepoFactory.VideoLocal.GetVideosWithoutEpisode().Select(a => new File(HttpContext, a)).ToList();
            if (page <= 0) page = 0;
            return RepoFactory.VideoLocal.GetVideosWithoutEpisode().Skip(pageSize * page).Take(pageSize)
                .Select(a => new File(HttpContext, a)).ToList();
        }
[ HttpGet ( " " ) ] public List < File > GetUnrecognizedFiles ( int pageSize = 100 , int page = 0 ) { if ( pageSize <= 0 ) return RepoFactory . VideoLocal . GetVideosWithoutEpisode ( ) . Select ( a => new File ( HttpContext , a ) ) . ToList ( ) ; if ( page <= 0 ) page = 0 ; return RepoFactory . VideoLocal . GetVideosWithoutEpisode ( ) . Skip ( pageSize * page ) . Take ( pageSize ) . Select ( a => new File ( HttpContext , a ) ) . ToList ( ) ; }
Get unrecognized files.
Get unrecognized files .
pageSize
int
Limits the number of results per page. Default is 100. Set to 0 to disable the limit.
Limits the number of results per page . Default is 100 . Set to 0 to disable the limit .
page
int
Page number. Default is 0.
Page number . Default is 0 .