Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/354533871e56e410eab83075fcb70a5eccd7866b
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
4 additions and
4 deletions
@ -68,15 +68,15 @@ namespace Lidarr.Api.V1.History
[HttpGet]
[Produces("application/json")]
public PagingResource < HistoryResource > GetHistory ( [ FromQuery ] PagingRequestResource paging , bool includeArtist , bool includeAlbum , bool includeTrack , int? eventType , int? albumId , string downloadId , [ FromQuery ] int [ ] artistIds = null , [ FromQuery ] int [ ] quality = null )
public PagingResource < HistoryResource > GetHistory ( [ FromQuery ] PagingRequestResource paging , bool includeArtist , bool includeAlbum , bool includeTrack , [ FromQuery ( Name = "eventType" ) ] int [ ] eventTypes , int? albumId , string downloadId , [ FromQuery ] int [ ] artistIds = null , [ FromQuery ] int [ ] quality = null )
{
var pagingResource = new PagingResource < HistoryResource > ( paging ) ;
var pagingSpec = pagingResource . MapToPagingSpec < HistoryResource , EntityHistory > ( "date" , SortDirection . Descending ) ;
if ( eventType . HasValue )
if ( eventType s ! = null & & eventTypes . Any ( ) )
{
var filterValue = ( EntityHistoryEventType ) eventType . Value ;
pagingSpec . FilterExpressions . Add ( v = > v. EventType = = filterValue ) ;
var filterValue s = eventTypes . Cast < EntityHistoryEventType > ( ) . ToArray ( ) ;
pagingSpec . FilterExpressions . Add ( v = > filterValues. Contains ( v . EventType ) ) ;
}
if ( albumId . HasValue )