mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-23 22:45:06 -04:00
Fixed: Prevent NullRef in NewznabRequestGenerator for missing definition
This commit is contained in:
@@ -31,6 +31,7 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
{
|
||||
return new NewznabRequestGenerator(_capabilitiesProvider)
|
||||
{
|
||||
Definition = Definition,
|
||||
PageSize = PageSize,
|
||||
Settings = Settings
|
||||
};
|
||||
|
||||
@@ -13,10 +13,11 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
public class NewznabRequestGenerator : IIndexerRequestGenerator
|
||||
{
|
||||
private readonly INewznabCapabilitiesProvider _capabilitiesProvider;
|
||||
|
||||
public ProviderDefinition Definition { get; set; }
|
||||
public int MaxPages { get; set; }
|
||||
public int PageSize { get; set; }
|
||||
public NewznabSettings Settings { get; set; }
|
||||
public ProviderDefinition Definition { get; set; }
|
||||
|
||||
public NewznabRequestGenerator(INewznabCapabilitiesProvider capabilitiesProvider)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user