Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/1e88d2b7c3c7e9916d4be45309e0472f974eab62?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
9 additions and
21 deletions
@ -11,5 +11,6 @@ namespace NzbDrone.Api.Indexers
public String Name { get ; set ; }
public List < Field > Fields { get ; set ; }
public String Implementation { get ; set ; }
public String ConfigContract { get ; set ; }
}
}
@ -9,7 +9,7 @@ using NzbDrone.Core.ThingiProvider;
namespace NzbDrone.Core.Test.ThingiProvider
{
public class ProviderRepositoryFixture : DbTest < ProviderRepository< IndexerDefinition > , IndexerDefinition >
public class ProviderRepositoryFixture : DbTest < IndexerRepository , IndexerDefinition >
{
[Test]
public void should_read_write_download_provider ( )
@ -1,33 +1,20 @@
using System ;
using System.Linq ;
using NzbDrone.Core.Datastore ;
using NzbDrone.Core.Datastore ;
using NzbDrone.Core.Messaging.Events ;
using NzbDrone.Core.ThingiProvider ;
namespace NzbDrone.Core.Indexers
{
public interface IIndexerRepository : I Basic Repository< IndexerDefinition >
public interface IIndexerRepository : I Provider Repository< IndexerDefinition >
{
IndexerDefinition Get ( string name ) ;
IndexerDefinition Find ( string name ) ;
}
public class IndexerRepository : Basic Repository< IndexerDefinition > , IIndexerRepository
public class IndexerRepository : Provider Repository< IndexerDefinition > , IIndexerRepository
{
public IndexerRepository ( IDatabase database , IEventAggregator eventAggregator )
: base ( database , eventAggregator )
{
}
public IndexerDefinition Get ( string name )
{
return Query . Single ( i = > i . Name . Equals ( name , StringComparison . InvariantCultureIgnoreCase ) ) ;
}
public IndexerDefinition Find ( string name )
{
return Query . SingleOrDefault ( i = > i . Name . Equals ( name , StringComparison . InvariantCultureIgnoreCase ) ) ;
}
}
}
@ -12,10 +12,10 @@ namespace NzbDrone.Core.Indexers
public class IndexerService : ProviderFactory < IIndexer , IndexerDefinition >
{
private readonly I ProviderRepository< IndexerDefinition > _providerRepository ;
private readonly I IndexerRepository _providerRepository ;
private readonly IEnumerable < IIndexer > _providers ;
public IndexerService ( I ProviderRepository< IndexerDefinition > providerRepository , IEnumerable < IIndexer > providers , Logger logger )
public IndexerService ( I IndexerRepository providerRepository , IEnumerable < IIndexer > providers , Logger logger )
: base ( providerRepository , providers , logger )
{
_providerRepository = providerRepository ;