@ -14,6 +14,8 @@ namespace NzbDrone.Core.Indexers.Rarbg
{
RuleFor ( c = > c . BaseUrl ) . ValidRootUrl ( ) ;
RuleFor ( c = > c . Categories ) . NotEmpty ( ) ;
RuleFor ( c = > c . SeedCriteria ) . SetValidator ( _ = > new SeedCriteriaSettingsValidator ( ) ) ;
}
}
@ -27,6 +29,7 @@ namespace NzbDrone.Core.Indexers.Rarbg
BaseUrl = "https://torrentapi.org" ;
RankedOnly = false ;
MinimumSeeders = IndexerDefaults . MINIMUM_SEEDERS ;
Categories = new [ ] { 14 , 48 , 17 , 44 , 45 , 47 , 50 , 51 , 52 , 42 , 46 } ;
MultiLanguages = Enumerable . Empty < int > ( ) ;
}
@ -48,7 +51,10 @@ namespace NzbDrone.Core.Indexers.Rarbg
[FieldDefinition(5, Type = FieldType.Tag, SelectOptions = typeof(IndexerFlags), Label = "Required Flags", HelpText = "What indexer flags are required?", HelpLink = "https://github.com/Radarr/Radarr/wiki/Indexer-Flags#1-required-flags", Advanced = true)]
public IEnumerable < int > RequiredFlags { get ; set ; }
[FieldDefinition(6)]
[FieldDefinition(6, Type = FieldType.Textbox, Label = "Categories", HelpText = "Comma Separated list, you can retrieve the ID by checking the URL behind the category on the website (i.e. Movie/x264/1080 = 44)", HelpLink = "https://rarbgmirror.org/torrents.php?category=movies", Advanced = true)]
public IEnumerable < int > Categories { get ; set ; }
[FieldDefinition(7)]
public SeedCriteriaSettings SeedCriteria { get ; } = new SeedCriteriaSettings ( ) ;
public NzbDroneValidationResult Validate ( )