|
|
@ -141,11 +141,15 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|
|
|
get { return "Mocked Indexer"; }
|
|
|
|
get { return "Mocked Indexer"; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override string NzbDownloadUrl(SyndicationItem item)
|
|
|
|
protected override string NzbDownloadUrl(SyndicationItem item)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return item.Links[0].Uri.ToString();
|
|
|
|
return item.Links[0].Uri.ToString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override string NzbInfoUrl(SyndicationItem item)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return item.Links[1].Uri.ToString();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class TestUrlIndexer : IndexerBase
|
|
|
|
public class TestUrlIndexer : IndexerBase
|
|
|
@ -194,6 +198,11 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return "http://google.com";
|
|
|
|
return "http://google.com";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override string NzbInfoUrl(SyndicationItem item)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "http://google.com";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class CustomParserIndexer : IndexerBase
|
|
|
|
public class CustomParserIndexer : IndexerBase
|
|
|
@ -243,6 +252,11 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|
|
|
return "http://www.google.com";
|
|
|
|
return "http://www.google.com";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override string NzbInfoUrl(SyndicationItem item)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "http://www.google.com";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override EpisodeParseResult CustomParser(SyndicationItem item, EpisodeParseResult currentResult)
|
|
|
|
protected override EpisodeParseResult CustomParser(SyndicationItem item, EpisodeParseResult currentResult)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (currentResult == null) currentResult = new EpisodeParseResult();
|
|
|
|
if (currentResult == null) currentResult = new EpisodeParseResult();
|
|
|
@ -297,6 +311,11 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override string NzbInfoUrl(SyndicationItem item)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class DefaultEnabledIndexer : IndexerBase
|
|
|
|
public class DefaultEnabledIndexer : IndexerBase
|
|
|
@ -345,12 +364,17 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|
|
|
{
|
|
|
|
{
|
|
|
|
get { return "Mocked Indexer"; }
|
|
|
|
get { return "Mocked Indexer"; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override string NzbDownloadUrl(SyndicationItem item)
|
|
|
|
protected override string NzbDownloadUrl(SyndicationItem item)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return item.Links[0].Uri.ToString();
|
|
|
|
return item.Links[0].Uri.ToString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override string NzbInfoUrl(SyndicationItem item)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return item.Links[1].Uri.ToString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override bool EnabledByDefault
|
|
|
|
public override bool EnabledByDefault
|
|
|
|
{
|
|
|
|
{
|
|
|
|
get { return true; }
|
|
|
|
get { return true; }
|
|
|
|