mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Convert functions and properties to expression bodies when able (#7312)
Convert functions and properties to expression bodies when able
This commit is contained in:
@@ -17,15 +17,15 @@ namespace Jackett.Common.Indexers
|
||||
{
|
||||
public class ShowRSS : BaseWebIndexer
|
||||
{
|
||||
private string SearchAllUrl { get { return SiteLink + "other/all.rss"; } }
|
||||
private string SearchAllUrl => SiteLink + "other/all.rss";
|
||||
public override string[] LegacySiteLinks { get; protected set; } = new string[] {
|
||||
"http://showrss.info/",
|
||||
};
|
||||
|
||||
private new ConfigurationData configData
|
||||
{
|
||||
get { return base.configData; }
|
||||
set { base.configData = value; }
|
||||
get => base.configData;
|
||||
set => base.configData = value;
|
||||
}
|
||||
|
||||
public ShowRSS(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps)
|
||||
@@ -49,18 +49,13 @@ namespace Jackett.Common.Indexers
|
||||
configData.LoadValuesFromJson(configJson);
|
||||
var releases = await PerformQuery(new TorznabQuery());
|
||||
|
||||
await ConfigureIfOK(string.Empty, releases.Count() > 0, () =>
|
||||
{
|
||||
throw new Exception("Could not find releases from this URL");
|
||||
});
|
||||
await ConfigureIfOK(string.Empty, releases.Any(),
|
||||
() => throw new Exception("Could not find releases from this URL"));
|
||||
|
||||
return IndexerConfigurationStatus.RequiresTesting;
|
||||
}
|
||||
|
||||
public override Task<byte[]> Download(Uri link)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
public override Task<byte[]> Download(Uri link) => throw new NotImplementedException();
|
||||
|
||||
protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query)
|
||||
{
|
||||
|
Reference in New Issue
Block a user