mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
Added NzbInfoUrl to indexers.
This commit is contained in:
@@ -141,11 +141,15 @@ namespace NzbDrone.Core.Test.ProviderTests
|
||||
get { return "Mocked Indexer"; }
|
||||
}
|
||||
|
||||
|
||||
protected override string NzbDownloadUrl(SyndicationItem item)
|
||||
{
|
||||
return item.Links[0].Uri.ToString();
|
||||
}
|
||||
|
||||
protected override string NzbInfoUrl(SyndicationItem item)
|
||||
{
|
||||
return item.Links[1].Uri.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
public class TestUrlIndexer : IndexerBase
|
||||
@@ -194,6 +198,11 @@ namespace NzbDrone.Core.Test.ProviderTests
|
||||
{
|
||||
return "http://google.com";
|
||||
}
|
||||
|
||||
protected override string NzbInfoUrl(SyndicationItem item)
|
||||
{
|
||||
return "http://google.com";
|
||||
}
|
||||
}
|
||||
|
||||
public class CustomParserIndexer : IndexerBase
|
||||
@@ -243,6 +252,11 @@ namespace NzbDrone.Core.Test.ProviderTests
|
||||
return "http://www.google.com";
|
||||
}
|
||||
|
||||
protected override string NzbInfoUrl(SyndicationItem item)
|
||||
{
|
||||
return "http://www.google.com";
|
||||
}
|
||||
|
||||
protected override EpisodeParseResult CustomParser(SyndicationItem item, EpisodeParseResult currentResult)
|
||||
{
|
||||
if (currentResult == null) currentResult = new EpisodeParseResult();
|
||||
@@ -297,6 +311,11 @@ namespace NzbDrone.Core.Test.ProviderTests
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
protected override string NzbInfoUrl(SyndicationItem item)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class DefaultEnabledIndexer : IndexerBase
|
||||
@@ -345,12 +364,17 @@ namespace NzbDrone.Core.Test.ProviderTests
|
||||
{
|
||||
get { return "Mocked Indexer"; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected override string NzbDownloadUrl(SyndicationItem item)
|
||||
{
|
||||
return item.Links[0].Uri.ToString();
|
||||
}
|
||||
|
||||
protected override string NzbInfoUrl(SyndicationItem item)
|
||||
{
|
||||
return item.Links[1].Uri.ToString();
|
||||
}
|
||||
|
||||
public override bool EnabledByDefault
|
||||
{
|
||||
get { return true; }
|
||||
|
||||
Reference in New Issue
Block a user