Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/326ecf1c146ccfeb5cb19290b88a0487417f4c51?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
14 additions and
0 deletions
@ -2,6 +2,7 @@
using System.Collections.Generic ;
using NzbDrone.Api.REST ;
using NzbDrone.Core.Qualities ;
using NzbDrone.Api.Series ;
namespace NzbDrone.Api.Blacklist
{
@ -12,5 +13,7 @@ namespace NzbDrone.Api.Blacklist
public string SourceTitle { get ; set ; }
public QualityModel Quality { get ; set ; }
public DateTime Date { get ; set ; }
public SeriesResource Series { get ; set ; }
}
}
@ -2,12 +2,14 @@
using System.Collections.Generic ;
using NzbDrone.Core.Datastore ;
using NzbDrone.Core.Qualities ;
using NzbDrone.Core.Tv ;
namespace NzbDrone.Core.Blacklisting
{
public class Blacklist : ModelBase
{
public Int32 SeriesId { get ; set ; }
public Series Series { get ; set ; }
public List < Int32 > EpisodeIds { get ; set ; }
public String SourceTitle { get ; set ; }
public QualityModel Quality { get ; set ; }
@ -1,6 +1,8 @@
using System.Collections.Generic ;
using NzbDrone.Core.Datastore ;
using NzbDrone.Core.Messaging.Events ;
using Marr.Data.QGen ;
using NzbDrone.Core.Tv ;
namespace NzbDrone.Core.Blacklisting
{
@ -27,5 +29,12 @@ namespace NzbDrone.Core.Blacklisting
{
return Query . Where ( b = > b . SeriesId = = seriesId ) ;
}
protected override SortBuilder < Blacklist > GetPagedQuery ( QueryBuilder < Blacklist > query , PagingSpec < Blacklist > pagingSpec )
{
var baseQuery = query . Join < Blacklist , Series > ( JoinType . Inner , h = > h . Series , ( h , s ) = > h . SeriesId = = s . Id ) ;
return base . GetPagedQuery ( baseQuery , pagingSpec ) ;
}
}
}