mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
Initial Commit Rework
This commit is contained in:
@@ -76,7 +76,7 @@ namespace NzbDrone.Core.ThingiProvider
|
||||
return definitions;
|
||||
}
|
||||
|
||||
public ValidationResult Test(TProviderDefinition definition)
|
||||
public virtual ValidationResult Test(TProviderDefinition definition)
|
||||
{
|
||||
return GetInstance(definition).Test();
|
||||
}
|
||||
@@ -167,5 +167,11 @@ namespace NzbDrone.Core.ThingiProvider
|
||||
_providerRepository.Delete(invalidDefinition);
|
||||
}
|
||||
}
|
||||
|
||||
public List<TProviderDefinition> AllForTag(int tagId)
|
||||
{
|
||||
return All().Where(p => p.Tags.Contains(tagId))
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user