Added NzbInfoUrl to indexers.

This commit is contained in:
Mark McDowall 2012-05-02 12:02:39 -07:00
commit b314ff5e82
13 changed files with 113 additions and 4 deletions

View file

@ -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; }