mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Added NzbInfoUrl to indexers.
This commit is contained in:
parent
ce0a6f8b86
commit
b314ff5e82
13 changed files with 113 additions and 4 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue