Shoko.Server/API/v3/Controllers/FileController.cs
/// <summary>
/// Get files with more than one location.
/// </summary>
/// <param name="pageSize">Limits the number of results per page. Set to 0 to disable the limit.</param>
/// <param name="page">Page number.</param>
/// <returns></returns>
Get files with more than one location.
Get files with more than one location .
[HttpGet("Duplicates")]
        public List<File> GetExactDuplicateFiles([FromQuery] int pageSize = 100, [FromQuery] int page = 0)
        {
            if (pageSize <= 0)
                return RepoFactory.VideoLocal.GetExactDuplicateVideos().Select(a => new File(HttpContext, a)).ToList();
            if (page <= 0) page = 0;
            return RepoFactory.VideoLocal.GetExactDuplicateVideos().Skip(pageSize * page).Take(pageSize)
                .Select(a => new File(HttpContext, a)).ToList();
        }
[ HttpGet ( " " ) ] public List < File > GetExactDuplicateFiles ( [ FromQuery ] int pageSize = 100 , [ FromQuery ] int page = 0 ) { if ( pageSize <= 0 ) return RepoFactory . VideoLocal . GetExactDuplicateVideos ( ) . Select ( a => new File ( HttpContext , a ) ) . ToList ( ) ; if ( page <= 0 ) page = 0 ; return RepoFactory . VideoLocal . GetExactDuplicateVideos ( ) . Skip ( pageSize * page ) . Take ( pageSize ) . Select ( a => new File ( HttpContext , a ) ) . ToList ( ) ; }
Get files with more than one location.
Get files with more than one location .
None
int
[FromQuery]
pageSize
Limits the number of results per page. Set to 0 to disable the limit.
Limits the number of results per page . Set to 0 to disable the limit .
page
None